OSDN Git Service

QmlDesigner.propertyEditor: adding more tooltips
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 9 Mar 2011 12:06:38 +0000 (13:06 +0100)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 9 Mar 2011 14:41:41 +0000 (15:41 +0100)
Adding missing tooltips

Task-number: QTCREATORBUG-3525

share/qtcreator/qmldesigner/propertyeditor/Qt/AnchorButtons.qml
share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml
share/qtcreator/qmldesigner/propertyeditor/Qt/ColorTypeButtons.qml

index 44d3cc6..c2a607d 100644 (file)
@@ -26,6 +26,7 @@ QWidget {
         fixedHeight: 28
                height: fixedHeight
         styleSheetFile: "anchortop.css";
+        toolTip: enabled ? qsTr("Set top anchor") : qsTr("Setting anchors in states is not supported.")
 
         checked: anchorBackend.topAnchored;
         onReleased: {
@@ -49,6 +50,7 @@ QWidget {
                height: fixedHeight
 
         styleSheetFile: "anchorbottom.css";
+        toolTip: enabled ? qsTr("Set bottom anchor") : qsTr("Setting anchors in states is not supported.")
 
         checked: anchorBackend.bottomAnchored;
         onReleased: {
@@ -71,6 +73,7 @@ QWidget {
                height: fixedHeight
 
         styleSheetFile: "anchorleft.css";
+        toolTip: enabled ? qsTr("Set left anchor") : qsTr("Setting anchors in states is not supported.")
 
         checked: anchorBackend.leftAnchored;
         onReleased: {
@@ -93,6 +96,7 @@ QWidget {
                height: fixedHeight
 
         styleSheetFile: "anchorright.css";
+        toolTip: enabled ? qsTr("Set right anchor") : qsTr("Setting anchors in states is not supported.")
 
         checked: anchorBackend.rightAnchored;
         onReleased: {
@@ -125,6 +129,7 @@ QWidget {
                height: fixedHeight
 
         styleSheetFile: "anchorfill.css";
+        toolTip: enabled ? qsTr("Fill to parent") : qsTr("Setting anchors in states is not supported.")
         checkable: true
 
         onReleased: {              
@@ -157,6 +162,7 @@ QWidget {
                height: fixedHeight
 
                styleSheetFile: "anchorvertical.css";
+                toolTip: enabled ? qsTr("Set vertical anchor") : qsTr("Setting anchors in states is not supported.")
 
         checked: anchorBackend.verticalCentered;
         onReleased: {
@@ -181,6 +187,7 @@ QWidget {
                height: fixedHeight
         
                styleSheetFile: "anchorhorizontal.css";
+                toolTip: enabled ? qsTr("Set horizontal anchor") : qsTr("Setting anchors in states is not supported.")
 
         checked: anchorBackend.horizontalCentered;
         onReleased: {
index ce1c57c..5b08c18 100644 (file)
@@ -175,6 +175,7 @@ QExtGroupBox {
                         fixedWidth: 22;
                         width: fixedWidth
                         height: fixedHeight
+                        toolTip: qsTr("Color editor")
 
                         onClicked: {
                             if (colorGroupBox.animated)
index b8ccfca..8436718 100644 (file)
@@ -50,6 +50,7 @@ QWidget {
         
         styleSheetFile: "styledbuttonleft.css"                
         iconFromFile: "images/icon_color_solid.png"
+        toolTip: qsTr("Solid color")
 
         onToggled: {
             if (checked) {
@@ -74,6 +75,7 @@ QWidget {
 
         styleSheetFile: "styledbuttonmiddle.css"
         iconFromFile: "images/icon_color_gradient.png"
+        toolTip: qsTr("Gradient")
 
         onToggled: {
             if (checked) {
@@ -97,6 +99,7 @@ QWidget {
         fixedHeight: 28
         styleSheetFile: "styledbuttonright.css"
         iconFromFile: "images/icon_color_none.png"
+        toolTip: qsTr("Transparent")
 
         onToggled: {
             if (checked) {