diff options
author | Sami Varanka <sami.varanka@qt.io> | 2021-06-29 18:57:12 +0300 |
---|---|---|
committer | Sami Varanka <sami.varanka@qt.io> | 2021-08-06 08:59:55 +0300 |
commit | 3513884f6838d31e72c462ee358293c2e797f04b (patch) | |
tree | bc6ffd9c469d8bb55e228fa80ed9f8a8b8bdb9fd /examples/datavisualization | |
parent | 4b9fc0883ac6955089b3d552227cba1a8cea6087 (diff) |
Add: Colorize surfaceseries wireframe
Added color property for surfaceseries wireframe.
Modified surfaceseries cpptest and qmltest to
test the added property. In addition,
the documentation for the property was added.
Modified qmlsurface example to use the new
property.
Fixes: QTBUG-64748
Change-Id: I18f56258cdba2b3270dce7c8313cbf17e499ff39
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'examples/datavisualization')
-rw-r--r-- | examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml | 20 |
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 |