diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2021-08-04 20:21:31 +0200 |
---|---|---|
committer | Henning Gründl <henning.gruendl@qt.io> | 2021-08-05 10:00:42 +0000 |
commit | c116b2570983cb0c0e038556f73b90c4628bd8c7 (patch) | |
tree | fced15cfed41d9b99330d689498ab507686d1b92 /share/qtcreator/qmldesigner/itemLibraryQmlSources | |
parent | 1e901c5d6171622c089b9bcbc5555fd08dce712f (diff) | |
download | qt-creator-c116b2570983cb0c0e038556f73b90c4628bd8c7.tar.gz |
QmlDesigner: Add collapse/expand all to sections
Add the functionality to collapse/expand all section in the property at
once by calling a context menu on one of the section headers and
choosing the appropriate menu item.
Make some adjustments in Assets and ItemsView so it won't collide with
the context menus used there.
Task-number: QDS-4757
Change-Id: Ied9dabdbb4359a05b654bfc2a26829da46700239
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share/qtcreator/qmldesigner/itemLibraryQmlSources')
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml | 2 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml index 85cac6aba0..4ed0159dd5 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml @@ -129,6 +129,8 @@ Item { expanded: dirExpanded visible: dirVisible expandOnClick: false + useDefaulContextMenu: false + onToggleExpand: { dirExpanded = !dirExpanded } diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml index 6742aceda8..79ab72f123 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml @@ -217,6 +217,8 @@ ScrollView { rightPadding: 0 expanded: importExpanded expandOnClick: false + useDefaulContextMenu: false + onToggleExpand: { if (categoryModel.rowCount() > 0) importExpanded = !importExpanded |