Fix print settings tab in materials view

CURA-8979
This commit is contained in:
casper 2022-03-10 22:13:32 +01:00
parent 9ba44f1d30
commit 2dd440cc0c

View File

@ -511,31 +511,37 @@ Item
} }
} }
ListView Column
{ {
anchors visible: pageSelectorTabRow.currentItem.activeView === "settings"
{ spacing: UM.Theme.getSize("narrow_margin").height
top: pageSelectorTabRow.bottom anchors.fill: parent
left: parent.left anchors.topMargin: UM.Theme.getSize("thin_margin").height
right: parent.right anchors.bottomMargin: UM.Theme.getSize("thin_margin").height
bottom: parent.bottom anchors.leftMargin: UM.Theme.getSize("thin_margin").width
} anchors.rightMargin: UM.Theme.getSize("thin_margin").width
ScrollBar.vertical: UM.ScrollBar {}
clip: true
Repeater
{
model: UM.SettingDefinitionsModel model: UM.SettingDefinitionsModel
{ {
containerId: Cura.MachineManager.activeMachine != null ? Cura.MachineManager.activeMachine.definition.id: "" containerId: Cura.MachineManager.activeMachine != null ? Cura.MachineManager.activeMachine.definition.id: ""
visibilityHandler: Cura.MaterialSettingsVisibilityHandler { } visibilityHandler: Cura.MaterialSettingsVisibilityHandler { }
expanded: ["*"] expanded: ["*"]
} }
ScrollBar.vertical: UM.ScrollBar {}
clip: true
visible: pageSelectorTabRow.currentItem.activeView === "settings"
delegate: UM.TooltipArea delegate: UM.TooltipArea
{ {
width: childrenRect.width width: childrenRect.width
height: childrenRect.height height: childrenRect.height
UM.TooltipArea
{
anchors.fill: parent
text: model.description text: model.description
}
UM.Label UM.Label
{ {
id: label id: label
@ -600,6 +606,7 @@ Item
} }
} }
} }
}
function updateCostPerMeter() function updateCostPerMeter()
{ {