Remove incorrect enum usage

This only needs to happen in code that uses PyQt, not in qml code
This commit is contained in:
Jaime van Kessel 2022-06-17 15:26:30 +02:00
parent d05417f7f0
commit b25e760c53
6 changed files with 16 additions and 16 deletions

View file

@ -402,7 +402,7 @@ Window
UM.Label
{
Layout.fillWidth: true
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
Layout.alignment: Qt.AlignVCenter
text: catalog.i18nc("@text Asking the user whether printers are missing in a list.", "Printers missing?")
+ "\n"
+ catalog.i18nc("@text", "Make sure all your printers are turned ON and connected to Digital Factory.")
@ -413,7 +413,7 @@ Window
Cura.SecondaryButton
{
id: refreshListButton
Layout.alignment: Qt.AlignmentFlag.AlignVCenter
Layout.alignment: Qt.AlignVCenter
text: catalog.i18nc("@button", "Refresh List")
iconSource: UM.Theme.getIcon("ArrowDoubleCircleRight")
onClicked: Cura.API.account.sync(true)

View file

@ -65,7 +65,7 @@ Item
Rectangle
{
Layout.alignment: Qt.AlignmentFlag.AlignHCenter
Layout.alignment: Qt.AlignHCenter
color: UM.Theme.getColor("viewport_overlay")
width: whatsNewViewport.width
height: whatsNewViewport.height