mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Progress bar causing crash due to incorrect min max value variable names.
Give buttons fixed leftMargin in monitor page so icons are center aligned. CURA-8980
This commit is contained in:
parent
5d28994b87
commit
41e04f2e9d
2 changed files with 10 additions and 2 deletions
|
@ -183,8 +183,8 @@ Item
|
|||
UM.ProgressBar
|
||||
{
|
||||
id: progressBar
|
||||
minimumValue: 0
|
||||
maximumValue: 100
|
||||
from: 0
|
||||
to: 100
|
||||
value: 0
|
||||
|
||||
//Doing this in an explicit binding since the implicit binding breaks on occasion.
|
||||
|
|
|
@ -98,6 +98,7 @@ Item
|
|||
Layout.preferredWidth: _buttonSize
|
||||
Layout.preferredHeight: _buttonSize
|
||||
iconSource: UM.Theme.getIcon("ChevronSingleUp")
|
||||
leftPadding: (Layout.preferredWidth - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.moveHead(0, distancesRow.currentDistance, 0)
|
||||
}
|
||||
|
@ -109,6 +110,7 @@ Item
|
|||
Layout.preferredWidth: _buttonSize
|
||||
Layout.preferredHeight: _buttonSize
|
||||
iconSource: UM.Theme.getIcon("ChevronSingleLeft")
|
||||
leftPadding: (Layout.preferredWidth - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.moveHead(-distancesRow.currentDistance, 0, 0)
|
||||
}
|
||||
|
@ -120,6 +122,7 @@ Item
|
|||
Layout.preferredWidth: _buttonSize
|
||||
Layout.preferredHeight: _buttonSize
|
||||
iconSource: UM.Theme.getIcon("ChevronSingleRight")
|
||||
leftPadding: (Layout.preferredWidth - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.moveHead(distancesRow.currentDistance, 0, 0)
|
||||
}
|
||||
|
@ -131,6 +134,7 @@ Item
|
|||
Layout.preferredWidth: _buttonSize
|
||||
Layout.preferredHeight: _buttonSize
|
||||
iconSource: UM.Theme.getIcon("ChevronSingleDown")
|
||||
leftPadding: (Layout.preferredWidth - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.moveHead(0, -distancesRow.currentDistance, 0)
|
||||
}
|
||||
|
@ -142,6 +146,7 @@ Item
|
|||
Layout.preferredWidth: _buttonSize
|
||||
Layout.preferredHeight: _buttonSize
|
||||
iconSource: UM.Theme.getIcon("House")
|
||||
leftPadding: (Layout.preferredWidth - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.homeHead()
|
||||
}
|
||||
|
@ -166,6 +171,7 @@ Item
|
|||
iconSource: UM.Theme.getIcon("ChevronSingleUp")
|
||||
width: height
|
||||
height: _buttonSize
|
||||
leftPadding: (width - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.moveHead(0, 0, distancesRow.currentDistance)
|
||||
|
||||
|
@ -176,6 +182,7 @@ Item
|
|||
iconSource: UM.Theme.getIcon("House")
|
||||
width: height
|
||||
height: _buttonSize
|
||||
leftPadding: (width - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.homeBed()
|
||||
}
|
||||
|
@ -185,6 +192,7 @@ Item
|
|||
iconSource: UM.Theme.getIcon("ChevronSingleDown")
|
||||
width: height
|
||||
height: _buttonSize
|
||||
leftPadding: (width - iconSize) / 2
|
||||
|
||||
onClicked: printerModel.moveHead(0, 0, -distancesRow.currentDistance)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue