Add option to collapse or expand all setting categories

Sadly it doesn't display on the category headers themselves, but it works just as well.
This commit is contained in:
Ghostkeeper 2018-03-30 14:45:45 +02:00
parent 60a217fc84
commit 6d10ac993e
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -601,6 +601,17 @@ Item
onTriggered: Cura.Actions.configureSettingVisibility.trigger(contextMenu);
}
MenuSeparator {}
MenuItem
{
text: catalog.i18nc("@action:inmenu", "Collapse All")
onTriggered: definitionsModel.collapseAll()
}
MenuItem
{
text: catalog.i18nc("@action:inmenu", "Expand All")
onTriggered: definitionsModel.expandAll()
}
}
UM.SettingPropertyProvider