mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
"checkedState" is now "checkState" in newer CheckBox
Remove partiallyCheckedEnabled since Cura.CheckBox manages this itself.
This commit is contained in:
parent
9b11483428
commit
4c9c2ad131
2 changed files with 4 additions and 5 deletions
|
@ -36,7 +36,7 @@ UM.PreferencesPage
|
||||||
id: base;
|
id: base;
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: toggleVisibleSettings
|
id: toggleVisibleSettings
|
||||||
anchors
|
anchors
|
||||||
|
@ -46,7 +46,7 @@ UM.PreferencesPage
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width
|
leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
text: catalog.i18nc("@label:textbox", "Check all")
|
text: catalog.i18nc("@label:textbox", "Check all")
|
||||||
checkedState:
|
checkState:
|
||||||
{
|
{
|
||||||
if(definitionsModel.visibleCount == definitionsModel.categoryCount)
|
if(definitionsModel.visibleCount == definitionsModel.categoryCount)
|
||||||
{
|
{
|
||||||
|
@ -61,14 +61,13 @@ UM.PreferencesPage
|
||||||
return Qt.PartiallyChecked
|
return Qt.PartiallyChecked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
partiallyCheckedEnabled: true
|
|
||||||
|
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
if(parent.checkedState == Qt.Unchecked || parent.checkedState == Qt.PartiallyChecked)
|
if(parent.checkState == Qt.Unchecked || parent.checkState == Qt.PartiallyChecked)
|
||||||
{
|
{
|
||||||
definitionsModel.setAllExpandedVisible(true)
|
definitionsModel.setAllExpandedVisible(true)
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ MenuItem
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
source: UM.Theme.getIcon("Check")
|
source: UM.Theme.getIcon("EmptyCheck", "low")
|
||||||
color: UM.Theme.getColor("setting_control_text")
|
color: UM.Theme.getColor("setting_control_text")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue