summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-03-03 13:49:27 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-03-03 14:37:14 +0200
commitb2e4f1485df801a9e7f3812a66e4e7fc6c578980 (patch)
tree4f47c7a24a3a0896136aff477144aa6c9d87d15c /examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers
parent7206dc36f1be77515cf6759795b265c986b2e20b (diff)
Enable querying shadow support from graphs
Also some example tweaking. Change-Id: If69e9d3617afc37b88fed4fd0e02ae19f0af7f78 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers')
-rw-r--r--examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml b/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml
index 0be991bc..1c15d919 100644
--- a/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml
+++ b/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml
@@ -217,9 +217,10 @@ Item {
NewButton {
id: shadowButton
- text: "Show Shadows"
Layout.fillWidth: true
Layout.minimumHeight: 40
+ text: surfaceLayers.shadowsSupported ? "Show Shadows" : "Shadows not supported"
+ enabled: surfaceLayers.shadowsSupported
onClicked: {
if (surfaceLayers.shadowQuality === AbstractGraph3D.ShadowQualityNone) {
surfaceLayers.shadowQuality = AbstractGraph3D.ShadowQualityLow