forked from qt-creator/qt-creator
QmlDesigner: Update GradientPropertySpinBox
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>
This commit is contained in:
committed by
Thomas Hartmann
parent
85cebb3cba
commit
f136415e8c
@@ -28,7 +28,7 @@ import QtQuick.Layouts 1.0
|
|||||||
import QtQuickDesignerTheme 1.0
|
import QtQuickDesignerTheme 1.0
|
||||||
import StudioControls 1.0 as StudioControls
|
import StudioControls 1.0 as StudioControls
|
||||||
|
|
||||||
StudioControls.SpinBox {
|
StudioControls.RealSpinBox {
|
||||||
id: spinBox
|
id: spinBox
|
||||||
width: 82
|
width: 82
|
||||||
Layout.minimumWidth: 82
|
Layout.minimumWidth: 82
|
||||||
@@ -36,9 +36,10 @@ StudioControls.SpinBox {
|
|||||||
property string propertyName
|
property string propertyName
|
||||||
actionIndicatorVisible: false
|
actionIndicatorVisible: false
|
||||||
|
|
||||||
from: -9999
|
realFrom: -9999
|
||||||
to: 9999
|
realTo: 9999
|
||||||
Component.onCompleted: spinBox.value = gradientLine.model.readGradientProperty(propertyName)
|
realStepSize: 1
|
||||||
onCompressedValueModified: gradientLine.model.setGradientProperty(propertyName, spinBox.value)
|
|
||||||
stepSize: 1
|
Component.onCompleted: spinBox.realValue = gradientLine.model.readGradientProperty(propertyName)
|
||||||
|
onCompressedRealValueModified: gradientLine.model.setGradientProperty(propertyName, spinBox.realValue)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user