Browse Source

Added a Tooltip over the Dismiss button. Changed the cursor on hover.

Dimitriovski 5 years ago
parent
commit
7359492e11
1 changed files with 14 additions and 7 deletions
  1. 14 7
      plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml

+ 14 - 7
plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml

@@ -125,17 +125,24 @@ UM.Dialog{
                                 color: UM.Theme.getColor("text")
                                 elide: Text.ElideRight
                             }
-                            Label
+                            UM.TooltipArea
                             {
-                                text: "(Dismiss)"
-                                font: UM.Theme.getFont("small")
+                                width: childrenRect.width;
+                                height: childrenRect.height;
+                                text: catalog.i18nc("@info:tooltip", "Dismisses the package and won't be shown in this dialog anymore")
                                 anchors.right: parent.right
                                 anchors.verticalCenter: packageIcon.verticalCenter
-                                color: UM.Theme.getColor("text")
-                                MouseArea
+                                Label
                                 {
-                                    anchors.fill: parent
-                                    onClicked: toolbox.dismissIncompatiblePackage(model.package_id)
+                                    text: "(Dismiss)"
+                                    font: UM.Theme.getFont("small")
+                                    color: UM.Theme.getColor("text")
+                                    MouseArea
+                                    {
+                                        cursorShape: Qt.PointingHandCursor
+                                        anchors.fill: parent
+                                        onClicked: toolbox.dismissIncompatiblePackage(model.package_id)
+                                    }
                                 }
                             }
                         }