diff options
author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2024-01-22 22:37:17 +0200 |
---|---|---|
committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2024-02-22 09:02:35 +0000 |
commit | b980a6cfb4ddfa763888ac212c6b160c4bc5105b (patch) | |
tree | 56cc2382baf47ec52afe230b5daef9395343e329 /examples/datavisualization/qmlmultigraph/qml | |
parent | ddb5e26a228e30a9a0f4daf7d21da6ed8e31cb88 (diff) | |
parent | 1385dbb068b33a775fa00218fb72d23e34754be5 (diff) |
Merge remote-tracking branch 'origin/tqtc/lts-6.2.8' into tqtc/lts-6.2-opensource
Conflicts solved in a file:
dependencies.yaml
Change-Id: Id761143342b5c2b463a5de624dbba6ac0efef349
Diffstat (limited to 'examples/datavisualization/qmlmultigraph/qml')
-rw-r--r-- | examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml b/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml index f30b1739..219f22d4 100644 --- a/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml +++ b/examples/datavisualization/qmlmultigraph/qml/qmlmultigraph/main.qml @@ -38,6 +38,8 @@ Item { width: 800 height: 600 + property bool portratiMode: width < height + Data { id: data } @@ -102,7 +104,7 @@ Item { Layout.minimumWidth: parent.width / 2 Layout.fillHeight: true Layout.fillWidth: true - text: "Clear Selections" + text: portratiMode ? "Clear\nSelections" : "Clear Selections" onClicked: clearSelections() // call a helper function to keep button itself simpler } @@ -117,14 +119,14 @@ Item { Button { Layout.fillHeight: true Layout.fillWidth: true - text: "Reset Cameras" + text: portratiMode ? "Reset\nCameras" : "Reset Cameras" onClicked: resetCameras() // call a helper function to keep button itself simpler } Button { Layout.fillHeight: true Layout.fillWidth: true - text: "Toggle Mesh Styles" + text: portratiMode ? "Toggle\nMesh\nStyles" : "Toggle Mesh Styles" onClicked: toggleMeshStyle() // call a helper function to keep button itself simpler } } |