diff options
Diffstat (limited to 'src/controls')
| -rw-r--r-- | src/controls/ScrollView.qml | 4 | ||||
| -rw-r--r-- | src/controls/Slider.qml | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml index 19cdee965..01b9cd3c6 100644 --- a/src/controls/ScrollView.qml +++ b/src/controls/ScrollView.qml @@ -207,8 +207,8 @@ FocusScope { property int acceleration: 40 property int flickThreshold: 20 - property double speedThreshold: 3 - property double ignored: 0.001 // ## flick() does not work with 0 yVelocity + property real speedThreshold: 3 + property real ignored: 0.001 // ## flick() does not work with 0 yVelocity property int maxFlick: 400 property bool horizontalRecursionGuard: false diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml index 3ccf4a647..0493d9349 100644 --- a/src/controls/Slider.qml +++ b/src/controls/Slider.qml @@ -75,7 +75,7 @@ Control { property int orientation: Qt.Horizontal /*! - \qmlproperty double Slider::minimumValue + \qmlproperty real Slider::minimumValue This property holds the minimum value of the Slider. The default value is \c{0.0}. @@ -83,7 +83,7 @@ Control { property alias minimumValue: range.minimumValue /*! - \qmlproperty double Slider::maximumValue + \qmlproperty real Slider::maximumValue This property holds the maximum value of the Slider The default value is \c{1.0}. @@ -110,7 +110,7 @@ Control { property alias pressed: mouseArea.pressed /*! - \qmlproperty double Slider::stepSize + \qmlproperty real Slider::stepSize This property indicates the slider step size. @@ -132,7 +132,7 @@ Control { property alias stepSize: range.stepSize /*! - \qmlproperty double Slider::value + \qmlproperty real Slider::value This property holds the current value of the Slider. The default value is \c{0.0}. @@ -264,7 +264,7 @@ Control { horizontalMaximumValue: slider.maximumValue verticalMinimumValue: slider.minimumValue verticalMaximumValue: slider.maximumValue - property double step: (slider.maximumValue - slider.minimumValue)/(range.positionAtMaximum - range.positionAtMinimum) + property real step: (slider.maximumValue - slider.minimumValue)/(range.positionAtMaximum - range.positionAtMinimum) onVerticalWheelMoved: { if (verticalDelta !== 0) { |
