mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:06:13 +08:00
Added a Tooltip over the Dismiss button. Changed the cursor on hover.
This commit is contained in:
parent
071cf5517e
commit
7359492e11
@ -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…
x
Reference in New Issue
Block a user