diff options
author | Oliver Eftevaag <[email protected]> | 2021-08-23 15:14:25 +0200 |
---|---|---|
committer | Oliver Eftevaag <[email protected]> | 2021-08-27 17:09:49 +0200 |
commit | e771c12ae73d987f8bda8802e03694c425ef749c (patch) | |
tree | 4dd4312973fc71e2f35ef08b6b77ac08600bf747 /examples/quick/imageelements/content/ImageCell.qml | |
parent | 1bab06950a3e2bd443f723f92253fd9710be8c33 (diff) |
ImageElements example: Use QQC2 and update copyright
Updating the example to use qt quick controls 2 where it makes sense, as
well as copyright headers.
Task-number: QTBUG-95737
Pick-to: 6.2
Change-Id: Ie22ab8551926916abd0a478adc16d1d4daeb13ad
Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'examples/quick/imageelements/content/ImageCell.qml')
-rw-r--r-- | examples/quick/imageelements/content/ImageCell.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/quick/imageelements/content/ImageCell.qml b/examples/quick/imageelements/content/ImageCell.qml index 7804346bd4..7b88b64b88 100644 --- a/examples/quick/imageelements/content/ImageCell.qml +++ b/examples/quick/imageelements/content/ImageCell.qml @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2017 The Qt Company Ltd. +** Copyright (C) 2021 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. @@ -47,7 +47,8 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ -import QtQuick 2.0 +import QtQuick +import QtQuick.Controls Item { property alias mode: image.fillMode @@ -60,7 +61,7 @@ Item { clip: true // only makes a difference if mode is PreserveAspectCrop } - Text { + Label { id: captionItem anchors.horizontalCenter: parent.horizontalCenter; anchors.bottom: parent.bottom } |