summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2023-01-18 13:01:11 +0200
committerTomi Korpipaa <tomi.korpipaa@qt.io>2023-01-18 17:30:07 +0200
commitdca3851cc37ab7d81e37f33cb4eba475ba7dfb8b (patch)
tree8638a992b939407acbed4cf5b642bb59f28825ff /examples/datavisualization
parent1d56d643482208d3c36ca8d5f56689e5a9cbfe1c (diff)
Fix qmllint warnings in qmlmultigraph
Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: Iab3070b95c3fb50a7067220ded43a73c73a33c63 Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'examples/datavisualization')
-rw-r--r--examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml b/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml
index 69590183..d4b84302 100644
--- a/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml
+++ b/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml
@@ -78,8 +78,8 @@ Item {
Layout.minimumWidth: parent.width / 2
Layout.fillHeight: true
Layout.fillWidth: true
- text: portraitMode ? "Clear\nSelections" : "Clear Selections"
- onClicked: clearSelections() // call a helper function to keep button itself simpler
+ text: mainView.portraitMode ? "Clear\nSelections" : "Clear Selections"
+ onClicked: mainView.clearSelections() // call a helper function to keep button itself simpler
}
Button {
@@ -93,15 +93,15 @@ Item {
Button {
Layout.fillHeight: true
Layout.fillWidth: true
- text: portraitMode ? "Reset\nCameras" : "Reset Cameras"
- onClicked: resetCameras() // call a helper function to keep button itself simpler
+ text: mainView.portraitMode ? "Reset\nCameras" : "Reset Cameras"
+ onClicked: mainView.resetCameras() // call a helper function to keep button itself simpler
}
Button {
Layout.fillHeight: true
Layout.fillWidth: true
- text: portraitMode ? "Toggle\nMesh\nStyles" : "Toggle Mesh Styles"
- onClicked: toggleMeshStyle() // call a helper function to keep button itself simpler
+ text: mainView.portraitMode ? "Toggle\nMesh\nStyles" : "Toggle Mesh Styles"
+ onClicked: mainView.toggleMeshStyle() // call a helper function to keep button itself simpler
}
}
}