summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml')
-rw-r--r--examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml b/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml
index 2124346a..f128ac45 100644
--- a/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml
+++ b/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml
@@ -155,6 +155,26 @@ Rectangle {
}
Button {
+ id: surfaceGridColor
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ text: "Red surface grid color"
+ onClicked: {
+ if (Qt.colorEqual(surfaceSeries.wireFrameColor, "#000000")
+ && Qt.colorEqual(heightSeries.wireFrameColor, "#000000")) {
+ surfaceSeries.wireFrameColor = "red"
+ heightSeries.wireFrameColor = "red"
+ text = "Black surface grid color"
+ }
+ else {
+ surfaceSeries.wireFrameColor = "black"
+ heightSeries.wireFrameColor = "black"
+ text = "Red surface grid color"
+ }
+ }
+ }
+
+ Button {
id: surfaceToggle
Layout.fillWidth: true
Layout.fillHeight: true