summaryrefslogtreecommitdiffstats
path: root/examples/charts/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/charts/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml')
-rw-r--r--examples/charts/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml13
1 files changed, 11 insertions, 2 deletions
diff --git a/examples/charts/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml b/examples/charts/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml
index b393b9ff..9eb9f9af 100644
--- a/examples/charts/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml
+++ b/examples/charts/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml
@@ -36,9 +36,18 @@ ChartView {
animationOptions: ChartView.NoAnimation
theme: ChartView.ChartThemeDark
property bool openGL: true
+ property bool openGLSupported: true
onOpenGLChanged: {
- series("signal 1").useOpenGL = openGL;
- series("signal 2").useOpenGL = openGL;
+ if (openGLSupported) {
+ series("signal 1").useOpenGL = openGL;
+ series("signal 2").useOpenGL = openGL;
+ }
+ }
+ Component.onCompleted: {
+ if (!series("signal 1").useOpenGL) {
+ openGLSupported = false
+ openGL = false
+ }
}
ValueAxis {