From 5af3f24dc878aef40e09daf197ec973e7b6bd47d Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Mon, 18 Jul 2011 16:34:08 +0200
Subject: [PATCH] QmlDesigner.propertyEditor: style fix

I moved the tooltip into the parent widget to avoid coloring issues.

Task-number: QTCREATORBUG-5480
Change-Id: Ic7f70d83e22847ca8f257be3728139f68a0cb77c
Reviewed-on: http://codereview.qt.nokia.com/1776
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
---
 .../qmldesigner/propertyeditor/Qt/ColorGroupBox.qml  | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml
index 74fd5a9a008..27b73c821c6 100644
--- a/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml
+++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml
@@ -296,15 +296,14 @@ QExtGroupBox {
                         leftMargin: 0
                         spacing: 2
                         QWidget {
+                            toolTip: qsTr("Hue")
                             layout: HorizontalLayout {
                                 Label {
                                     text: "H"
-                                    toolTip: qsTr("Hue")
                                     fixedWidth: 15
                                 }
 
                                 QSpinBox {
-                                    toolTip: qsTr("Hue")
                                     id: hueSpinBox
                                     maximum: 359
                                     value: colorControl.hue;
@@ -315,14 +314,13 @@ QExtGroupBox {
                             }
                         }
                         QWidget {
+                            toolTip: qsTr("Saturation")
                             layout: HorizontalLayout {
                                 Label {
                                     text: "S"
-                                    toolTip: qsTr("Saturation")
                                     fixedWidth: 15
                                 }
                                 QSpinBox {
-                                    toolTip: qsTr("Saturation")
                                     id: saturationSpinBox
                                     maximum: 255
                                     value: colorControl.saturation;
@@ -334,14 +332,13 @@ QExtGroupBox {
                         }
 
                         QWidget {
+                            toolTip: qsTr("Brightness")
                             layout: HorizontalLayout {
                                 Label {
                                     text: "B"
-                                    toolTip: qsTr("Brightness")
                                     fixedWidth: 15
                                 }
                                 QSpinBox {
-                                    toolTip: qsTr("Brightness")
                                     id: valueSpinBox
                                     maximum: 255
                                     value: colorControl.value;
@@ -352,15 +349,14 @@ QExtGroupBox {
                         }
 
                         QWidget {
+                            toolTip: qsTr("Alpha")
                             layout: HorizontalLayout {
                                 topMargin: 12
                                 Label {
                                     text: "A"
-                                    toolTip: qsTr("Alpha")
                                     fixedWidth: 15
                                 }
                                 QSpinBox {
-                                    toolTip: qsTr("Alpha")
                                     id: alphaSpinBox
                                     maximum: 255
                                     value: colorControl.alpha;
-- 
GitLab