mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 05:05:53 +08:00
Make sure ManageButton
has the correct width and height
Cura 8587
This commit is contained in:
parent
1adae61f39
commit
4991c39535
@ -16,19 +16,17 @@ Item
|
|||||||
property bool busy
|
property bool busy
|
||||||
property bool confirmed
|
property bool confirmed
|
||||||
|
|
||||||
|
Layout.preferredWidth: childrenRect.width
|
||||||
|
Layout.preferredHeight: childrenRect.height
|
||||||
|
|
||||||
signal clicked(bool primary_action)
|
signal clicked(bool primary_action)
|
||||||
|
|
||||||
property Component primaryButton: Component
|
property Component primaryButton: Component
|
||||||
{
|
{
|
||||||
Cura.PrimaryButton
|
Cura.PrimaryButton
|
||||||
{
|
{
|
||||||
id: primaryButton
|
|
||||||
text: manageButton.text
|
text: manageButton.text
|
||||||
|
onClicked: manageButton.clicked(true)
|
||||||
onClicked:
|
|
||||||
{
|
|
||||||
manageButton.clicked(true)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,13 +34,8 @@ Item
|
|||||||
{
|
{
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
id: secondaryButton
|
|
||||||
text: manageButton.text
|
text: manageButton.text
|
||||||
|
onClicked: manageButton.clicked(false)
|
||||||
onClicked:
|
|
||||||
{
|
|
||||||
manageButton.clicked(false)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,7 +43,8 @@ Item
|
|||||||
{
|
{
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: busyMessage
|
height: UM.Theme.getSize("action_button").height
|
||||||
|
width: childrenRect.width
|
||||||
|
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
@ -76,7 +70,6 @@ Item
|
|||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: busyMessageText
|
|
||||||
visible: parent.visible
|
visible: parent.visible
|
||||||
anchors.left: busyIndicator.right
|
anchors.left: busyIndicator.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
@ -93,13 +86,11 @@ Item
|
|||||||
{
|
{
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
|
||||||
height: UM.Theme.getSize("action_button").height
|
height: UM.Theme.getSize("action_button").height
|
||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: confirmedMessageText
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: manageButton.text
|
text: manageButton.text
|
||||||
|
|
||||||
@ -109,9 +100,6 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
height: UM.Theme.getSize("action_button").height
|
|
||||||
width: childrenRect.width
|
|
||||||
|
|
||||||
Loader
|
Loader
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user