Update UI layering and MachineSelector properties in 3MFReader

The z-index property of combobox and Loader elements in WorkspaceSection.qml was adjusted to ensure proper layering.

CURA-11700
This commit is contained in:
Saumya Jain 2024-03-18 14:47:24 +01:00
parent 5eeee37f0e
commit 37dc9e5dcb
2 changed files with 9 additions and 10 deletions

View file

@ -116,17 +116,12 @@ UM.Dialog
comboboxTitle: catalog.i18nc("@action:label", "Open With") comboboxTitle: catalog.i18nc("@action:label", "Open With")
comboboxTooltipText: catalog.i18nc("@info:tooltip", "Printer settings will be updated to match the settings saved with the project.") comboboxTooltipText: catalog.i18nc("@info:tooltip", "Printer settings will be updated to match the settings saved with the project.")
comboboxVisible: workspaceDialog.visible && manager.updatableMachinesModel.count > 1 comboboxVisible: workspaceDialog.visible && manager.updatableMachinesModel.count > 1
Cura.MachineSelector combobox: Cura.MachineSelector
{ {
id: machineSelector id: machineSelector
visible: workspaceDialog.visible && manager.updatableMachinesModel.count > 1
headerCornerSide: Cura.RoundedRectangle.Direction.All headerCornerSide: Cura.RoundedRectangle.Direction.All
anchors.top: parent.top width: parent.width
anchors.topMargin: UM.Theme.getSize("default_margin").width * 3 height: parent.height
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
width: Math.round(parent.width / 2.5)
height: UM.Theme.getSize("button").height
machineListModel: manager.updatableMachinesModel machineListModel: manager.updatableMachinesModel
machineName: manager.machineName machineName: manager.machineName

View file

@ -15,7 +15,11 @@ Item
property Component content: Item { visible: false } property Component content: Item { visible: false }
property alias comboboxTitle: comboboxLabel.text property alias comboboxTitle: comboboxLabel.text
property Component combobox: Item { visible: false } property Component combobox: Item
{
z: -1
visible: false
}
property string comboboxTooltipText: "" property string comboboxTooltipText: ""
property bool comboboxVisible: false property bool comboboxVisible: false
@ -91,11 +95,11 @@ Item
} }
} }
Loader Loader
{ {
width: parent.width width: parent.width
height: content.height height: content.height
z: -1
anchors.top: sectionTitleRow.bottom anchors.top: sectionTitleRow.bottom
sourceComponent: content sourceComponent: content
} }