OSDN Git Service

QmlDesigner.propertyEditor: adding tooltips
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Mon, 18 Jul 2011 09:00:04 +0000 (11:00 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Mon, 18 Jul 2011 09:02:28 +0000 (11:02 +0200)
Task-number: QTCREATORBUG-5480
Change-Id: Ia33cb40f0d34eb8c29f6c490051a373820a7ebc3
Reviewed-on: http://codereview.qt.nokia.com/1739
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml

index 2923a4f..74fd5a9 100644 (file)
@@ -299,10 +299,12 @@ QExtGroupBox {
                             layout: HorizontalLayout {
                                 Label {
                                     text: "H"
+                                    toolTip: qsTr("Hue")
                                     fixedWidth: 15
                                 }
 
                                 QSpinBox {
+                                    toolTip: qsTr("Hue")
                                     id: hueSpinBox
                                     maximum: 359
                                     value: colorControl.hue;
@@ -316,9 +318,11 @@ QExtGroupBox {
                             layout: HorizontalLayout {
                                 Label {
                                     text: "S"
+                                    toolTip: qsTr("Saturation")
                                     fixedWidth: 15
                                 }
                                 QSpinBox {
+                                    toolTip: qsTr("Saturation")
                                     id: saturationSpinBox
                                     maximum: 255
                                     value: colorControl.saturation;
@@ -333,9 +337,11 @@ QExtGroupBox {
                             layout: HorizontalLayout {
                                 Label {
                                     text: "B"
+                                    toolTip: qsTr("Brightness")
                                     fixedWidth: 15
                                 }
                                 QSpinBox {
+                                    toolTip: qsTr("Brightness")
                                     id: valueSpinBox
                                     maximum: 255
                                     value: colorControl.value;
@@ -350,9 +356,11 @@ QExtGroupBox {
                                 topMargin: 12
                                 Label {
                                     text: "A"
+                                    toolTip: qsTr("Alpha")
                                     fixedWidth: 15
                                 }
                                 QSpinBox {
+                                    toolTip: qsTr("Alpha")
                                     id: alphaSpinBox
                                     maximum: 255
                                     value: colorControl.alpha;