summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmloscilloscope/qml/qmloscilloscope/main.qml
diff options
context:
space:
mode:
authorTuomo Pelkonen <tuomo.pelkonen@gmail.com>2021-01-14 10:49:40 +0200
committerTuomo Pelkonen <tuomo.pelkonen@gmail.com>2021-01-27 10:01:58 +0200
commit6c2aec18ed7f043c17b09c939b9bc521def37aa5 (patch)
tree3dd4face677a6eb9ef2e45b51548d4b5a17263c4 /examples/datavisualization/qmloscilloscope/qml/qmloscilloscope/main.qml
parent1fc39261132f0b3edf89934fd055234f8b19ced1 (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/qmloscilloscope/qml/qmloscilloscope/main.qml')
-rw-r--r--examples/datavisualization/qmloscilloscope/qml/qmloscilloscope/main.qml28
1 files changed, 12 insertions, 16 deletions
diff --git a/examples/datavisualization/qmloscilloscope/qml/qmloscilloscope/main.qml b/examples/datavisualization/qmloscilloscope/qml/qmloscilloscope/main.qml
index c6a64cc2..dfb67424 100644
--- a/examples/datavisualization/qmloscilloscope/qml/qmloscilloscope/main.qml
+++ b/examples/datavisualization/qmloscilloscope/qml/qmloscilloscope/main.qml
@@ -27,10 +27,10 @@
**
****************************************************************************/
-import QtQuick 2.1
-import QtQuick.Layouts 1.0
-import QtQuick.Controls 1.0
-import QtDataVisualization 1.1
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Controls
+import QtDataVisualization
import "."
Item {
@@ -130,7 +130,6 @@ Item {
anchors.fill: parent
RowLayout {
id: sliderLayout
- anchors.top: parent.top
Layout.fillHeight: true
Layout.fillWidth: true
Layout.minimumHeight: flatShadingToggle.height
@@ -157,11 +156,10 @@ Item {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.minimumWidth: 80
- minimumValue: mainView.sampleCache * 2
- maximumValue: minimumValue * 10
+ from: mainView.sampleCache * 2
+ to: from * 10
stepSize: mainView.sampleCache
- updateValueWhileDragging: false
- Component.onCompleted: value = minimumValue * 2
+ Component.onCompleted: value = from * 2
}
Rectangle {
@@ -203,10 +201,9 @@ Item {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.minimumWidth: 80
- minimumValue: 2
- maximumValue: 60
+ from: 2
+ to: 60
stepSize: 2
- updateValueWhileDragging: true
value: 30
}
@@ -272,10 +269,9 @@ Item {
Layout.fillHeight: true
Layout.fillWidth: true
Layout.minimumHeight: flatShadingToggle.height
- anchors.bottom: parent.bottom
spacing: 0
- NewButton {
+ Button {
id: flatShadingToggle
Layout.fillHeight: true
Layout.fillWidth: true
@@ -294,7 +290,7 @@ Item {
}
}
- NewButton {
+ Button {
id: surfaceGridToggle
Layout.fillHeight: true
Layout.fillWidth: true
@@ -312,7 +308,7 @@ Item {
}
}
- NewButton {
+ Button {
id: exitButton
Layout.fillHeight: true
Layout.fillWidth: true