diff options
author | Tuomo Pelkonen <tuomo.pelkonen@gmail.com> | 2021-01-14 10:49:40 +0200 |
---|---|---|
committer | Tuomo Pelkonen <tuomo.pelkonen@gmail.com> | 2021-01-27 10:01:58 +0200 |
commit | 6c2aec18ed7f043c17b09c939b9bc521def37aa5 (patch) | |
tree | 3dd4face677a6eb9ef2e45b51548d4b5a17263c4 /examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml | |
parent | 1fc39261132f0b3edf89934fd055234f8b19ced1 (diff) |
Fix most of the QML example applications
Most of the QML examples work now as supposed to. Qmlbars still needs
fixing and is not included in this patch.
Task-number: QTBUG-89298
Change-Id: Ic8bc6511cdb00dd3db0a181b7a31b3bbc39f0556
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml')
-rw-r--r-- | examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml b/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml index 002f9d93..6e54fc96 100644 --- a/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml +++ b/examples/datavisualization/qmlscatter/qml/qmlscatter/main.qml @@ -28,9 +28,10 @@ ****************************************************************************/ //! [0] -import QtQuick 2.1 -import QtQuick.Layouts 1.0 -import QtDataVisualization 1.0 +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls +import QtDataVisualization import "." //! [0] @@ -148,7 +149,7 @@ Rectangle { anchors.left: parent.left spacing: 0 //! [7] - NewButton { + Button { id: shadowToggle Layout.fillHeight: true Layout.fillWidth: true @@ -166,7 +167,7 @@ Rectangle { } //! [7] - NewButton { + Button { id: smoothToggle Layout.fillHeight: true Layout.fillWidth: true @@ -182,7 +183,7 @@ Rectangle { } } - NewButton { + Button { id: cameraToggle Layout.fillHeight: true Layout.fillWidth: true @@ -197,7 +198,7 @@ Rectangle { } } - NewButton { + Button { id: themeToggle Layout.fillHeight: true Layout.fillWidth: true @@ -216,7 +217,7 @@ Rectangle { } } - NewButton { + Button { id: backgroundToggle Layout.fillHeight: true Layout.fillWidth: true @@ -232,7 +233,7 @@ Rectangle { } } - NewButton { + Button { id: exitButton Layout.fillHeight: true Layout.fillWidth: true |