summaryrefslogtreecommitdiffstats
path: root/tests/qmlmultigraph/qml/qmlmultigraph/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qmlmultigraph/qml/qmlmultigraph/main.qml')
-rw-r--r--tests/qmlmultigraph/qml/qmlmultigraph/main.qml48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/qmlmultigraph/qml/qmlmultigraph/main.qml b/tests/qmlmultigraph/qml/qmlmultigraph/main.qml
index fdc49132..11c4ab2d 100644
--- a/tests/qmlmultigraph/qml/qmlmultigraph/main.qml
+++ b/tests/qmlmultigraph/qml/qmlmultigraph/main.qml
@@ -43,6 +43,16 @@ Item {
valueRole: "expenses"
}
}
+
+ onRowAxisChanged: {
+ console.log("Bars: Row axis changed.")
+ }
+ onColumnAxisChanged: {
+ console.log("Bars: column axis changed.")
+ }
+ onValueAxisChanged: {
+ console.log("Bars: Value axis changed.")
+ }
}
ListModel {
@@ -75,6 +85,16 @@ Item {
zPosRole: "zPos"
}
}
+
+ onAxisXChanged: {
+ console.log("Scatter: axis X changed.")
+ }
+ onAxisYChanged: {
+ console.log("Scatter: axis Y changed.")
+ }
+ onAxisZChanged: {
+ console.log("Scatter: axis Z changed.")
+ }
}
ListModel {
@@ -105,6 +125,16 @@ Item {
valueRole: "pop_density"
}
}
+
+ onAxisXChanged: {
+ console.log("Surface: axis X changed.")
+ }
+ onAxisYChanged: {
+ console.log("Surface: axis Y changed.")
+ }
+ onAxisZChanged: {
+ console.log("Surface: axis Z changed.")
+ }
}
ListModel {
id: surfaceDataModel
@@ -141,6 +171,24 @@ Item {
text: "Quit"
onClicked: Qt.quit(0);
}
+
+ NewButton {
+ id: resetAxesButton
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ text: "Reset axes"
+ onClicked: {
+ barGraph.rowAxis = null
+ barGraph.columnAxis = null
+ barGraph.valueAxis = null
+ scatterGraph.axisX = null
+ scatterGraph.axisY = null
+ scatterGraph.axisZ = null
+ surfaceGraph.axisX = null
+ surfaceGraph.axisY = null
+ surfaceGraph.axisZ = null
+ }
+ }
}
Rectangle {