summaryrefslogtreecommitdiffstats
path: root/examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-09-29 16:49:59 +0300
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-09-30 07:45:08 +0000
commitfaab188cb2e7188ae47ea0ece4b451d503fbe5cf (patch)
tree8a754cbca7d336952818b50af41d81ecb84bfb93 /examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml
parent9aa888c2f56cdb91952fd70e85aec8cb5886d727 (diff)
Made Qml Oscilloscope example little more sensible
Removed spline and animations as the point of the example is to demonstrate high refresh rate use case. Also now default to useOpenGL. Change-Id: Iaf43bd8789893a9ed9bc409038e7d22d1bd7185d Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Diffstat (limited to 'examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml')
-rw-r--r--examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml14
1 files changed, 5 insertions, 9 deletions
diff --git a/examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml b/examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml
index ddde6324..4f84b392 100644
--- a/examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml
+++ b/examples/charts/qmloscilloscope/qml/qmloscilloscope/ControlPanel.qml
@@ -21,6 +21,7 @@ import QtQuick.Layouts 1.0
ColumnLayout {
property alias openGLButton: openGLButton
+ property alias antialiasButton: antialiasButton
spacing: 8
Layout.fillHeight: true
signal animationsEnabled(bool enabled)
@@ -40,13 +41,13 @@ ColumnLayout {
id: openGLButton
text: "OpenGL: "
items: ["false", "true"]
- currentSelection: 0
+ currentSelection: 1
onSelectionChanged: openGlChanged(currentSelection == 1);
}
MultiButton {
text: "Graph: "
- items: ["line", "spline", "scatter"]
+ items: ["line", "scatter"]
currentSelection: 0
onSelectionChanged: seriesTypeChanged(items[currentSelection]);
}
@@ -81,15 +82,10 @@ ColumnLayout {
}
MultiButton {
- text: "Animations: "
- items: ["OFF", "ON"]
- currentSelection: 0
- onSelectionChanged: animationsEnabled(currentSelection == 1);
- }
-
- MultiButton {
+ id: antialiasButton
text: "Antialias: "
items: ["OFF", "ON"]
+ enabled: false
currentSelection: 0
onSelectionChanged: antialiasingEnabled(currentSelection == 1);
}