mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 16:55:56 +08:00
Fix workspace dialog layout so checkbox and buttons dont get hidden
This commit is contained in:
parent
67aa6767c5
commit
f60765c56c
@ -13,13 +13,10 @@ UM.Dialog
|
|||||||
{
|
{
|
||||||
title: catalog.i18nc("@title:window", "Save Project")
|
title: catalog.i18nc("@title:window", "Save Project")
|
||||||
|
|
||||||
width: 550 * Screen.devicePixelRatio
|
width: 500
|
||||||
minimumWidth: 550 * Screen.devicePixelRatio
|
height: 400
|
||||||
|
|
||||||
height: 350 * Screen.devicePixelRatio
|
property int spacerHeight: 10
|
||||||
minimumHeight: 350 * Screen.devicePixelRatio
|
|
||||||
|
|
||||||
property int spacerHeight: 10 * Screen.devicePixelRatio
|
|
||||||
|
|
||||||
property bool dontShowAgain: true
|
property bool dontShowAgain: true
|
||||||
|
|
||||||
@ -42,7 +39,6 @@ UM.Dialog
|
|||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 20 * Screen.devicePixelRatio
|
|
||||||
|
|
||||||
UM.SettingDefinitionsModel
|
UM.SettingDefinitionsModel
|
||||||
{
|
{
|
||||||
@ -232,42 +228,48 @@ UM.Dialog
|
|||||||
height: spacerHeight
|
height: spacerHeight
|
||||||
width: height
|
width: height
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
id: buttonRow
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
height: childrenRect.height
|
||||||
|
|
||||||
CheckBox
|
CheckBox
|
||||||
{
|
{
|
||||||
id: dontShowAgainCheckbox
|
id: dontShowAgainCheckbox
|
||||||
|
anchors.left: parent.left
|
||||||
|
|
||||||
text: catalog.i18nc("@action:label", "Don't show project summary on save again")
|
text: catalog.i18nc("@action:label", "Don't show project summary on save again")
|
||||||
checked: dontShowAgain
|
checked: dontShowAgain
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: ok_button
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
Button
|
text: catalog.i18nc("@action:button","Save");
|
||||||
{
|
enabled: true
|
||||||
id: ok_button
|
onClicked: {
|
||||||
text: catalog.i18nc("@action:button","Save");
|
close()
|
||||||
enabled: true
|
yes()
|
||||||
onClicked: {
|
}
|
||||||
close()
|
|
||||||
yes()
|
|
||||||
}
|
}
|
||||||
anchors.bottomMargin: - 0.5 * height
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.right: parent.right
|
|
||||||
}
|
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: cancel_button
|
id: cancel_button
|
||||||
text: catalog.i18nc("@action:button","Cancel");
|
anchors.right: ok_button.left
|
||||||
enabled: true
|
anchors.rightMargin: 2
|
||||||
onClicked: close()
|
|
||||||
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.right: ok_button.left
|
|
||||||
anchors.bottomMargin: - 0.5 * height
|
|
||||||
anchors.rightMargin:2
|
|
||||||
|
|
||||||
|
text: catalog.i18nc("@action:button","Cancel");
|
||||||
|
enabled: true
|
||||||
|
onClicked: close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user