Add to drag and drop the multiple selection in collections

See:https://qelectrotech.org/forum/viewtopic.php?pid=20125#p20125
This commit is contained in:
Laurent Trinques 2024-07-27 16:37:39 +02:00
parent 7d8734e192
commit 7c5e0135a6

View File

@ -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);