diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2021-08-23 15:14:25 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-09-03 08:56:05 +0000 |
commit | 7753f42027acbb5b4b711f4f6879ed924b8ee7cf (patch) | |
tree | 4486f58f6ef5b5c1c4237d99800f304e005a6d73 /examples/quick/imageelements/multiframeborderimage.qml | |
parent | 898f349b7876caee70e14c63259a16b175f0d5bd (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
Change-Id: Ie22ab8551926916abd0a478adc16d1d4daeb13ad
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit e771c12ae73d987f8bda8802e03694c425ef749c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quick/imageelements/multiframeborderimage.qml')
-rw-r--r-- | examples/quick/imageelements/multiframeborderimage.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/quick/imageelements/multiframeborderimage.qml b/examples/quick/imageelements/multiframeborderimage.qml index 0805ea4243..754bd16ef8 100644 --- a/examples/quick/imageelements/multiframeborderimage.qml +++ b/examples/quick/imageelements/multiframeborderimage.qml @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2019 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. @@ -48,7 +48,8 @@ ** ****************************************************************************/ -import QtQuick 2.14 +import QtQuick +import QtQuick.Controls Rectangle { width: 480 @@ -74,7 +75,7 @@ Rectangle { } } - Text { + Label { anchors.centerIn: parent horizontalAlignment: Text.AlignHCenter text: "frame " + (img.currentFrame + 1) + " of " + img.frameCount + |