From dca3851cc37ab7d81e37f33cb4eba475ba7dfb8b Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa Date: Wed, 18 Jan 2023 13:01:11 +0200 Subject: Fix qmllint warnings in qmlmultigraph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: Iab3070b95c3fb50a7067220ded43a73c73a33c63 Reviewed-by: Dilek Akcay Reviewed-by: Tomi Korpipää --- .../qmlmultigraph/qml/qmlmultigraph/main.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/datavisualization') 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 } } } -- cgit v1.2.3