diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2019-08-14 12:43:48 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-08-14 10:46:43 +0000 |
commit | f136415e8c2dff0ea9c9bbab2df86e8fbc38fe64 (patch) | |
tree | 0b5cfa003b2a054373a4d0de353b4b3e94b3298e /share | |
parent | 85cebb3cbaea1eff9d6ee84a518a44dbc62a3319 (diff) | |
download | qt-creator-f136415e8c2dff0ea9c9bbab2df86e8fbc38fe64.tar.gz |
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>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml | 13 |
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) } |