Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcasper <c.lamboo@ultimaker.com>2021-12-10 00:41:14 +0300
committercasper <c.lamboo@ultimaker.com>2021-12-10 00:41:14 +0300
commit4991c3953520709b2b1d8d55512a57d457778fb9 (patch)
treecd5795c7840e7b9808f3525c3fdd4308c6e0816a /plugins/Marketplace/resources
parent1adae61f39d17f1f9833324c74728314aed9bdb7 (diff)
Make sure `ManageButton` has the correct width and height
Cura 8587
Diffstat (limited to 'plugins/Marketplace/resources')
-rw-r--r--plugins/Marketplace/resources/qml/ManageButton.qml26
1 files changed, 7 insertions, 19 deletions
diff --git a/plugins/Marketplace/resources/qml/ManageButton.qml b/plugins/Marketplace/resources/qml/ManageButton.qml
index fdeb37a87a..2c05af02e9 100644
--- a/plugins/Marketplace/resources/qml/ManageButton.qml
+++ b/plugins/Marketplace/resources/qml/ManageButton.qml
@@ -16,19 +16,17 @@ Item
property bool busy
property bool confirmed
+ Layout.preferredWidth: childrenRect.width
+ Layout.preferredHeight: childrenRect.height
+
signal clicked(bool primary_action)
property Component primaryButton: Component
{
Cura.PrimaryButton
{
- id: primaryButton
text: manageButton.text
-
- onClicked:
- {
- manageButton.clicked(true)
- }
+ onClicked: manageButton.clicked(true)
}
}
@@ -36,13 +34,8 @@ Item
{
Cura.SecondaryButton
{
- id: secondaryButton
text: manageButton.text
-
- onClicked:
- {
- manageButton.clicked(false)
- }
+ onClicked: manageButton.clicked(false)
}
}
@@ -50,7 +43,8 @@ Item
{
Item
{
- id: busyMessage
+ height: UM.Theme.getSize("action_button").height
+ width: childrenRect.width
UM.RecolorImage
{
@@ -76,7 +70,6 @@ Item
}
Label
{
- id: busyMessageText
visible: parent.visible
anchors.left: busyIndicator.right
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
@@ -93,13 +86,11 @@ Item
{
Item
{
-
height: UM.Theme.getSize("action_button").height
width: childrenRect.width
Label
{
- id: confirmedMessageText
anchors.verticalCenter: parent.verticalCenter
text: manageButton.text
@@ -109,9 +100,6 @@ Item
}
}
- height: UM.Theme.getSize("action_button").height
- width: childrenRect.width
-
Loader
{