mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:49:00 +08:00
Make entire tooltip area clickable
Also saves on another component. And it's more logical, easier to use and fault-tolerant. Contributes to issue CURA-7071.
This commit is contained in:
parent
1d110c2c33
commit
e6856b02a4
@ -80,7 +80,7 @@ Item
|
||||
|
||||
UM.TooltipArea
|
||||
{
|
||||
width: childrenRect.width;
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
text: catalog.i18nc("@info:tooltip", "Go to Web Marketplace")
|
||||
anchors
|
||||
@ -89,6 +89,7 @@ Item
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
onClicked: Qt.openUrlExternally(toolbox.getWebMarketplaceUrl)
|
||||
Image
|
||||
{
|
||||
id: cloudMarketplaceButton
|
||||
@ -99,11 +100,6 @@ Item
|
||||
sourceSize.width: width
|
||||
sourceSize.height: height
|
||||
fillMode: Image.PreserveAspectFit
|
||||
MouseArea
|
||||
{
|
||||
anchors.fill: parent
|
||||
onClicked: Qt.openUrlExternally(toolbox.getWebMarketplaceUrl)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user