diff options
Diffstat (limited to 'examples/charts/qmloscilloscope/qml/qmloscilloscope/main.qml')
-rw-r--r-- | examples/charts/qmloscilloscope/qml/qmloscilloscope/main.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/charts/qmloscilloscope/qml/qmloscilloscope/main.qml b/examples/charts/qmloscilloscope/qml/qmloscilloscope/main.qml index a8260564..3479c523 100644 --- a/examples/charts/qmloscilloscope/qml/qmloscilloscope/main.qml +++ b/examples/charts/qmloscilloscope/qml/qmloscilloscope/main.qml @@ -67,6 +67,13 @@ Item { anchors.right: parent.right anchors.left: controlPanel.right height: main.height + + onOpenGLSupportedChanged: { + if (!openGLSupported) { + controlPanel.openGLButton.enabled = false + controlPanel.openGLButton.currentSelection = 0 + } + } } //![2] |