mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Added a Tooltip over the Dismiss button. Changed the cursor on hover.
This commit is contained in:
parent
071cf5517e
commit
7359492e11
1 changed files with 14 additions and 7 deletions
|
@ -125,15 +125,21 @@ UM.Dialog{
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
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
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: "(Dismiss)"
|
text: "(Dismiss)"
|
||||||
font: UM.Theme.getFont("small")
|
font: UM.Theme.getFont("small")
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.verticalCenter: packageIcon.verticalCenter
|
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: toolbox.dismissIncompatiblePackage(model.package_id)
|
onClicked: toolbox.dismissIncompatiblePackage(model.package_id)
|
||||||
}
|
}
|
||||||
|
@ -142,6 +148,7 @@ UM.Dialog{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // End of ScrollView
|
} // End of ScrollView
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue