From 7c5e0135a64d59c5b64c5f883c6179e9f36734b3 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sat, 27 Jul 2024 16:37:39 +0200 Subject: [PATCH] Add to drag and drop the multiple selection in collections See:https://qelectrotech.org/forum/viewtopic.php?pid=20125#p20125 --- sources/ElementsCollection/elementscollectionwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/ElementsCollection/elementscollectionwidget.cpp b/sources/ElementsCollection/elementscollectionwidget.cpp index da7d4df70..0ef2ba15d 100644 --- a/sources/ElementsCollection/elementscollectionwidget.cpp +++ b/sources/ElementsCollection/elementscollectionwidget.cpp @@ -189,6 +189,7 @@ void ElementsCollectionWidget::setUpWidget() m_tree_view = new ElementsTreeView(this); m_tree_view->setHeaderHidden(true); m_tree_view->setIconSize(QSize(50, 50)); + m_tree_view->setSelectionMode(QAbstractItemView::ExtendedSelection); m_tree_view->setDragDropMode(QAbstractItemView::DragDrop); m_tree_view->setContextMenuPolicy(Qt::CustomContextMenu); m_tree_view->setAutoExpandDelay(500);