summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmlcustominput/qml/qmlcustominput
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/qmlcustominput/qml/qmlcustominput
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/qmlcustominput/qml/qmlcustominput')
-rw-r--r--examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml b/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml
index e81dd749..bdabb420 100644
--- a/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml
+++ b/examples/datavisualization/qmlcustominput/qml/qmlcustominput/main.qml
@@ -190,7 +190,8 @@ Rectangle {
id: shadowToggle
Layout.fillHeight: true
Layout.minimumWidth: parent.width / 3 // 3 buttons divided equally in the layout
- text: "Hide Shadows"
+ text: scatterGraph.shadowsSupported ? "Hide Shadows" : "Shadows not supported"
+ enabled: scatterGraph.shadowsSupported
onClicked: {
if (scatterGraph.shadowQuality === AbstractGraph3D.ShadowQualityNone) {