mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Merge remote-tracking branch 'origin/CURA-8688_qt6_cleanup' into CURA-8688_qt6_cleanup
This commit is contained in:
commit
16325229af
4 changed files with 31 additions and 10 deletions
|
@ -17,6 +17,12 @@ Button {
|
|||
{
|
||||
spacing: UM.Theme.getSize("default_lining").width
|
||||
|
||||
Item //Wrapper to give space before icon with fixed width. This allows aligning checkbox with category icon.
|
||||
{
|
||||
height: label.height
|
||||
width: height
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
UM.RecolorImage
|
||||
{
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
@ -25,6 +31,7 @@ Button {
|
|||
source: base.checked ? UM.Theme.getIcon("ChevronSingleDown") : UM.Theme.getIcon("ChevronSingleRight");
|
||||
color: base.hovered ? palette.highlight : palette.buttonText
|
||||
}
|
||||
}
|
||||
UM.RecolorImage
|
||||
{
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
|
|
@ -10,16 +10,25 @@ import Cura 1.0 as Cura
|
|||
|
||||
UM.TooltipArea
|
||||
{
|
||||
x: model.depth * UM.Theme.getSize("default_margin").width;
|
||||
text: model.description;
|
||||
x: model.depth * UM.Theme.getSize("default_margin").width
|
||||
text: model.description
|
||||
|
||||
width: childrenRect.width;
|
||||
height: childrenRect.height;
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height
|
||||
|
||||
Item
|
||||
{
|
||||
id: spacer
|
||||
// Align checkbox with PerObjectCategory icon
|
||||
width: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
|
||||
UM.CheckBox
|
||||
{
|
||||
id: check
|
||||
|
||||
anchors.left: spacer.right
|
||||
|
||||
text: definition.label
|
||||
checked: addedSettingsModel.getVisible(model.key)
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@ UM.Dialog
|
|||
width: minimumWidth
|
||||
height: minimumHeight
|
||||
|
||||
margin: UM.Theme.getSize("thick_margin").width
|
||||
|
||||
property var changesModel: Cura.UserChangesModel { id: userChangesModel }
|
||||
|
||||
onVisibilityChanged:
|
||||
|
|
|
@ -278,6 +278,7 @@ Item
|
|||
|
||||
width: selectors.controlWidth
|
||||
height: parent.height
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
focusPolicy: Qt.ClickFocus
|
||||
|
||||
|
@ -289,6 +290,7 @@ Item
|
|||
}
|
||||
onClicked: materialsMenu.popup()
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
width: instructionButton.width + 2 * UM.Theme.getSize("narrow_margin").width
|
||||
|
@ -331,6 +333,7 @@ Item
|
|||
tooltip: text
|
||||
height: parent.height
|
||||
width: selectors.controlWidth
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
focusPolicy: Qt.ClickFocus
|
||||
enabled: enabledCheckbox.checked
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue