From 6d10ac993e5e918c17e74af544477f99818d5f28 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 30 Mar 2018 14:45:45 +0200 Subject: [PATCH] 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. --- resources/qml/Settings/SettingView.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/qml/Settings/SettingView.qml b/resources/qml/Settings/SettingView.qml index 4a919ab9bd..c7f9580ebd 100644 --- a/resources/qml/Settings/SettingView.qml +++ b/resources/qml/Settings/SettingView.qml @@ -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