Resolve Qt warnings

CURA 8687
This commit is contained in:
casper 2022-02-09 13:11:17 +01:00
parent 6ca14ecbae
commit adcf312de7

View File

@ -42,33 +42,25 @@ UM.Dialog
} }
} }
Row UM.Label
{ {
id: infoTextRow id: infoText
height: childrenRect.height text: catalog.i18nc("@text:window, %1 is a profile name", "You have customized some profile settings. Would you like to Keep these changed settings after switching profiles? Alternatively, you can discard the changes to load the defaults from '%1'.").arg(Cura.MachineManager.activeQualityDisplayNameMap["main"])
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
spacing: UM.Theme.getSize("default_margin").width wrapMode: Text.WordWrap
UM.I18nCatalog UM.I18nCatalog
{ {
id: catalog; id: catalog
name: "cura" name: "cura"
} }
UM.Label
{
text: catalog.i18nc("@text:window, %1 is a profile name", "You have customized some profile settings.\nWould you like to Keep these changed settings after switching profiles?\nAlternatively, you can discard the changes to load the defaults from '%1'.").arg(Cura.MachineManager.activeQualityDisplayNameMap["main"])
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
}
} }
Item Item
{ {
anchors.topMargin: UM.Theme.getSize("default_margin").height anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.top: infoTextRow.bottom anchors.top: infoText.bottom
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right