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/qmlaxisdrag/qml/qmlaxisdrag/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/qmlaxisdrag/qml/qmlaxisdrag/main.qml')
-rw-r--r-- | examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/main.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/main.qml b/examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/main.qml index 764987b0..c12c40e4 100644 --- a/examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/main.qml +++ b/examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/main.qml @@ -27,8 +27,9 @@ ** ****************************************************************************/ -import QtQuick 2.1 -import QtDataVisualization 1.1 +import QtQuick +import QtDataVisualization +import QtQuick.Controls import "." Item { @@ -270,7 +271,7 @@ Item { } //! [7] - NewButton { + Button { id: rangeToggle width: parent.width / 3 // We're adding 3 buttons and want to divide them equally text: "Use Preset Range" @@ -299,7 +300,7 @@ Item { } //! [8] - NewButton { + Button { id: orthoToggle width: parent.width / 3 text: "Display Orthographic" @@ -318,7 +319,7 @@ Item { } //! [8] - NewButton { + Button { id: exitButton width: parent.width / 3 text: "Quit" |