summaryrefslogtreecommitdiffstats
path: root/examples/qmloscilloscope/qml/qmloscilloscope/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmloscilloscope/qml/qmloscilloscope/main.qml')
-rw-r--r--examples/qmloscilloscope/qml/qmloscilloscope/main.qml23
1 files changed, 11 insertions, 12 deletions
diff --git a/examples/qmloscilloscope/qml/qmloscilloscope/main.qml b/examples/qmloscilloscope/qml/qmloscilloscope/main.qml
index 4d330b60..b9284777 100644
--- a/examples/qmloscilloscope/qml/qmloscilloscope/main.qml
+++ b/examples/qmloscilloscope/qml/qmloscilloscope/main.qml
@@ -27,9 +27,14 @@ Item {
width: 1280
height: 1024
- property int sampleCache: 5
property int sampleColumns: sampleSlider.value
property int sampleRows: sampleColumns / 2
+ property int sampleCache: 24
+
+ onSampleRowsChanged: {
+ surfaceSeries.selectedPoint = surfaceSeries.invalidSelectionPosition
+ generateData()
+ }
Item {
id: dataView
@@ -123,17 +128,11 @@ Item {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.minimumWidth: 100
- minimumValue: 10
- maximumValue: 400
- stepSize: 5
- updateValueWhileDragging: true
- value: 50
-
- onValueChanged: {
- refreshTimer
- surfaceSeries.selectedPoint = surfaceSeries.invalidSelectionPosition
- mainView.generateData()
- }
+ minimumValue: mainView.sampleCache * 2
+ maximumValue: minimumValue * 10
+ stepSize: mainView.sampleCache
+ updateValueWhileDragging: false
+ value: minimumValue * 2
}
Rectangle {