diff options
Diffstat (limited to 'examples/datavisualization/qmlsurface')
-rw-r--r-- | examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml b/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml index f11d15f3..6eef6cc4 100644 --- a/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml +++ b/examples/datavisualization/qmlsurface/qml/qmlsurface/main.qml @@ -93,11 +93,6 @@ Rectangle { yPosRole: "height" } //! [6] - - onFlatShadingSupportedChanged: { - flatShadingToggle.text = "Flat not supported" - } - onDrawModeChanged: checkState() } //! [4] @@ -169,7 +164,7 @@ Rectangle { id: flatShadingToggle Layout.fillWidth: true Layout.fillHeight: true - text: "Show Flat" + text: surfaceSeries.flatShadingSupported ? "Show Flat" : "Flat not supported" enabled: surfaceSeries.flatShadingSupported //! [2] onClicked: { |