aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-08-06 14:34:50 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2019-08-06 13:24:56 +0000
commit1b1d5b953a6407ae3332ad88492ca3907e3dddf1 (patch)
tree974d709195f9e477b1f60a82e0e48342406b0888 /share/qtcreator
parent8fb289f54bd6294f38f6dfaa5812ebc0a3196fcd (diff)
QmlDesigner: Add slider button to alpha spin box
Change-Id: I20deab5d884aa93a1bb541dab8f00c63fbf30954 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share/qtcreator')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml
index d190b0e8e4..f960e5ea23 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorButton.qml
@@ -254,7 +254,7 @@ Item {
}
DoubleSpinBox {
id: redSlider
- width: 64
+ width: 68
stepSize: 1
minimumValue: 0
@@ -283,7 +283,7 @@ Item {
}
DoubleSpinBox {
id: greenSlider
- width: 64
+ width: 68
stepSize: 1
minimumValue: 0
@@ -312,7 +312,7 @@ Item {
}
DoubleSpinBox {
id: blueSlider
- width: 64
+ width: 68
stepSize: 1
minimumValue: 0
@@ -341,7 +341,8 @@ Item {
}
DoubleSpinBox {
id: alphaSlider
- width: 64
+ sliderIndicatorVisible: true
+ width: 68
onValueModified: {
if (colorButton.alpha !== alphaSlider.value && !colorButton.block) {
colorButton.alpha = alphaSlider.value