mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
use namespace AlignmentFlag
Contributes to CURA-8640
This commit is contained in:
parent
3f8907d02a
commit
55cb86ebbd
6 changed files with 18 additions and 18 deletions
|
@ -31,7 +31,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: catalog.i18nc("@action:label", "Height (mm)")
|
text: catalog.i18nc("@action:label", "Height (mm)")
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: peak_height_label
|
id: peak_height_label
|
||||||
|
@ -64,7 +64,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: catalog.i18nc("@action:label", "Base (mm)")
|
text: catalog.i18nc("@action:label", "Base (mm)")
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
|
@ -98,7 +98,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: catalog.i18nc("@action:label", "Width (mm)")
|
text: catalog.i18nc("@action:label", "Width (mm)")
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: width_label
|
id: width_label
|
||||||
|
@ -132,7 +132,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: catalog.i18nc("@action:label", "Depth (mm)")
|
text: catalog.i18nc("@action:label", "Depth (mm)")
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: depth_label
|
id: depth_label
|
||||||
|
@ -166,7 +166,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: ""
|
text: ""
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: lighter_is_higher_label
|
id: lighter_is_higher_label
|
||||||
|
@ -203,7 +203,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: catalog.i18nc("@action:label", "Color Model")
|
text: catalog.i18nc("@action:label", "Color Model")
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: color_model_label
|
id: color_model_label
|
||||||
|
@ -240,7 +240,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: catalog.i18nc("@action:label", "1mm Transmittance (%)")
|
text: catalog.i18nc("@action:label", "1mm Transmittance (%)")
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: transmittance_label
|
id: transmittance_label
|
||||||
|
@ -272,7 +272,7 @@ UM.Dialog
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
Layout.minimumWidth: UM.Theme.getSize("setting_control").width
|
||||||
text: catalog.i18nc("@action:label", "Smoothing")
|
text: catalog.i18nc("@action:label", "Smoothing")
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
|
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,7 @@ UM.Dialog
|
||||||
font: UM.Theme.getFont("large")
|
font: UM.Theme.getFont("large")
|
||||||
anchors.verticalCenter: icon.verticalCenter
|
anchors.verticalCenter: icon.verticalCenter
|
||||||
height: UM.Theme.getSize("marketplace_large_icon").height
|
height: UM.Theme.getSize("marketplace_large_icon").height
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,7 @@ Window
|
||||||
{
|
{
|
||||||
implicitHeight: childrenRect.height
|
implicitHeight: childrenRect.height
|
||||||
implicitWidth: parent.width - 2 * UM.Theme.getSize("default_margin").width
|
implicitWidth: parent.width - 2 * UM.Theme.getSize("default_margin").width
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignHCenter
|
||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
|
@ -31,7 +31,7 @@ Item
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
Layout.preferredHeight: UM.Theme.getSize("action_button").height
|
Layout.preferredHeight: UM.Theme.getSize("action_button").height
|
||||||
Layout.preferredWidth: height
|
Layout.preferredWidth: height
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ Item
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
text: detailPage.title
|
text: detailPage.title
|
||||||
|
@ -93,4 +93,4 @@ Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -402,7 +402,7 @@ Window
|
||||||
UM.Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
text: catalog.i18nc("@text Asking the user whether printers are missing in a list.", "Printers missing?")
|
text: catalog.i18nc("@text Asking the user whether printers are missing in a list.", "Printers missing?")
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ catalog.i18nc("@text", "Make sure all your printers are turned ON and connected to Digital Factory.")
|
+ catalog.i18nc("@text", "Make sure all your printers are turned ON and connected to Digital Factory.")
|
||||||
|
@ -413,7 +413,7 @@ Window
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
id: refreshListButton
|
id: refreshListButton
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
text: catalog.i18nc("@button", "Refresh List")
|
text: catalog.i18nc("@button", "Refresh List")
|
||||||
iconSource: UM.Theme.getIcon("ArrowDoubleCircleRight")
|
iconSource: UM.Theme.getIcon("ArrowDoubleCircleRight")
|
||||||
onClicked: Cura.API.account.sync(true)
|
onClicked: Cura.API.account.sync(true)
|
||||||
|
|
|
@ -206,7 +206,7 @@ Item
|
||||||
{
|
{
|
||||||
height: informationPage.rowHeight
|
height: informationPage.rowHeight
|
||||||
width: informationPage.columnWidth
|
width: informationPage.columnWidth
|
||||||
verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Color")
|
verticalAlignment: Qt.AlignmentFlag.AlignVCenter; text: catalog.i18nc("@label", "Color")
|
||||||
}
|
}
|
||||||
|
|
||||||
Row
|
Row
|
||||||
|
@ -270,7 +270,7 @@ Item
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.rowHeight
|
height: parent.rowHeight
|
||||||
font: UM.Theme.getFont("default_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
text: catalog.i18nc("@label", "Properties")
|
text: catalog.i18nc("@label", "Properties")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -571,7 +571,7 @@ Item
|
||||||
height: spinBox.height + UM.Theme.getSize("default_lining").height
|
height: spinBox.height + UM.Theme.getSize("default_lining").height
|
||||||
text: model.label
|
text: model.label
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignmentFlag.AlignVCenter
|
||||||
}
|
}
|
||||||
Cura.SpinBox
|
Cura.SpinBox
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue