mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Fix a number of QML warnings
CURA-5785
This commit is contained in:
parent
7f99ed1af3
commit
52b2f4579a
3 changed files with 4 additions and 20 deletions
|
@ -111,7 +111,7 @@ Cura.ExpandableComponent
|
|||
|
||||
delegate: TabButton
|
||||
{
|
||||
width: Math.round(ListView.view.width / extrudersModel.rowCount())
|
||||
width: ListView.view != null ? Math.round(ListView.view.width / extrudersModel.rowCount()): 0
|
||||
height: parent.height
|
||||
contentItem: Item
|
||||
{
|
||||
|
@ -156,7 +156,7 @@ Cura.ExpandableComponent
|
|||
|
||||
OldControls.CheckBox
|
||||
{
|
||||
checked: Cura.MachineManager.getExtruder(tabControl.model.index).isEnabled
|
||||
checked: tabControl.model != null ? Cura.MachineManager.getExtruder(tabControl.model.index).isEnabled: false
|
||||
onClicked: Cura.MachineManager.setExtruderEnabled(tabControl.model.index, checked)
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
style: UM.Theme.styles.checkbox
|
||||
|
@ -190,7 +190,7 @@ Cura.ExpandableComponent
|
|||
tooltip: currentRootMaterialName
|
||||
visible: Cura.MachineManager.hasMaterials
|
||||
|
||||
enabled: !extrudersList.visible || Cura.ExtruderManager.activeExtruderIndex > -1
|
||||
enabled: Cura.ExtruderManager.activeExtruderIndex > -1
|
||||
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
width: tabControl.controlWidth
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue