aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2019-08-14 12:43:48 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2019-08-14 10:46:43 +0000
commitf136415e8c2dff0ea9c9bbab2df86e8fbc38fe64 (patch)
tree0b5cfa003b2a054373a4d0de353b4b3e94b3298e
parent85cebb3cbaea1eff9d6ee84a518a44dbc62a3319 (diff)
QmlDesigner: Update GradientPropertySpinBoxqds/v1.3.0-beta1
Fixes the referenced bug by replacing the SpinBox used in the GradientPropertySpinBox with a RealSpinBox. Task-number: QDS-914 Change-Id: Iaef165d622b14575713b090c0cc8a0bbac78cabb Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml13
1 files changed, 7 insertions, 6 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml
index 54483e1598..e316ef80b1 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml
@@ -28,7 +28,7 @@ import QtQuick.Layouts 1.0
import QtQuickDesignerTheme 1.0
import StudioControls 1.0 as StudioControls
-StudioControls.SpinBox {
+StudioControls.RealSpinBox {
id: spinBox
width: 82
Layout.minimumWidth: 82
@@ -36,9 +36,10 @@ StudioControls.SpinBox {
property string propertyName
actionIndicatorVisible: false
- from: -9999
- to: 9999
- Component.onCompleted: spinBox.value = gradientLine.model.readGradientProperty(propertyName)
- onCompressedValueModified: gradientLine.model.setGradientProperty(propertyName, spinBox.value)
- stepSize: 1
+ realFrom: -9999
+ realTo: 9999
+ realStepSize: 1
+
+ Component.onCompleted: spinBox.realValue = gradientLine.model.readGradientProperty(propertyName)
+ onCompressedRealValueModified: gradientLine.model.setGradientProperty(propertyName, spinBox.realValue)
}