mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 19:15:53 +08:00
Fix various QML warnings
CURA-8979
This commit is contained in:
parent
f760ca146d
commit
97124bf5a9
@ -60,7 +60,7 @@ Item
|
|||||||
|
|
||||||
properties: materialProperties
|
properties: materialProperties
|
||||||
containerId: currentItem != null ? currentItem.id : ""
|
containerId: currentItem != null ? currentItem.id : ""
|
||||||
currentMaterialNode: currentItem.container_node
|
currentMaterialNode: currentItem != null ? currentItem.container_node: null
|
||||||
}
|
}
|
||||||
|
|
||||||
QtObject
|
QtObject
|
||||||
|
@ -68,7 +68,7 @@ UM.ManagementPage
|
|||||||
}
|
}
|
||||||
|
|
||||||
title: catalog.i18nc("@title:tab", "Materials")
|
title: catalog.i18nc("@title:tab", "Materials")
|
||||||
detailsPlaneCation: currentItem.name
|
detailsPlaneCation: currentItem ? currentItem.name: ""
|
||||||
scrollviewCaption: catalog.i18nc("@label", "Materials compatible with active printer:") + `<br /><b>${Cura.MachineManager.activeMachine.name}</b>`
|
scrollviewCaption: catalog.i18nc("@label", "Materials compatible with active printer:") + `<br /><b>${Cura.MachineManager.activeMachine.name}</b>`
|
||||||
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
@ -97,7 +97,6 @@ Item
|
|||||||
}
|
}
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
border.color: UM.Theme.getColor("thick_lining")
|
border.color: UM.Theme.getColor("thick_lining")
|
||||||
visible: base.hasCurrentItem
|
|
||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
@ -240,11 +239,12 @@ Item
|
|||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
width: childrenRect.width + 2 * UM.Theme.getSize("narrow_margin").width
|
width: colorSelectorBackground.width + 2 * UM.Theme.getSize("narrow_margin").width
|
||||||
height: childrenRect.height + 2 * UM.Theme.getSize("narrow_margin").height
|
height: colorSelectorBackground.height + 2 * UM.Theme.getSize("narrow_margin").height
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
|
id: colorSelectorBackground
|
||||||
color: properties.color_code
|
color: properties.color_code
|
||||||
width: UM.Theme.getSize("icon_indicator").width
|
width: UM.Theme.getSize("icon_indicator").width
|
||||||
height: UM.Theme.getSize("icon_indicator").height
|
height: UM.Theme.getSize("icon_indicator").height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user