From 93b6202d0d56ceca7c09014e133075a2b31d18b8 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 12 Jul 2011 13:16:24 +0200 Subject: [PATCH] QmlDesigner.propertyEditor: increase number of decimals for opacity Task-number: QTCREATORBUG-4772 Change-Id: Ia590803e66d5e2cc41e51a1306511c9bfe4f3c47 Reviewed-on: http://codereview.qt.nokia.com/1519 Reviewed-by: Qt Sanity Bot Reviewed-by: Thomas Hartmann --- share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBox.qml | 1 + share/qtcreator/qmldesigner/propertyeditor/Qt/Visibility.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBox.qml index c0caf712366..24efb295897 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBox.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBox.qml @@ -46,6 +46,7 @@ QWidget { //This is a special doubleSpinBox that does color coding for states property alias text: label.text property bool alignRight: true property bool enabled: true + property alias decimals: box.decimals minimumHeight: 22; diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Visibility.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Visibility.qml index 741902affe6..74c6ed72e73 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Visibility.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Visibility.qml @@ -87,6 +87,7 @@ GroupBox { DoubleSpinBox { text: "" + decimals: 2 id: opacitySpinBox; backendValue: backendValues.opacity property variant backendValueValue: backendValues.opacity.value;