enable selection in the dialog item list

now the user can use the Ctrl and/or Shift key to select multiple items to be deleted
This commit is contained in:
donovaly
2020-02-16 21:31:56 +01:00
committed by wmayer
parent 0283cb09fb
commit 58bb17478c
9 changed files with 139 additions and 39 deletions

View File

@@ -197,7 +197,7 @@ void TaskDressUpParameters::setSelection(QListWidgetItem* current) {
hideObject();
// highlight all objects in the list
DressUpView->highlightReferences(true);
// clear existing selections
// clear existing selection because only the current item is highlighted, not all selected ones to keep the overview
Gui::Selection().clearSelection();
// highligh the selected item
Gui::Selection().addSelection(docName.c_str(), objName.c_str(), subName.c_str(), 0, 0, 0);