mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
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:
parent
7d8734e192
commit
7c5e0135a6
@ -189,6 +189,7 @@ void ElementsCollectionWidget::setUpWidget()
|
|||||||
m_tree_view = new ElementsTreeView(this);
|
m_tree_view = new ElementsTreeView(this);
|
||||||
m_tree_view->setHeaderHidden(true);
|
m_tree_view->setHeaderHidden(true);
|
||||||
m_tree_view->setIconSize(QSize(50, 50));
|
m_tree_view->setIconSize(QSize(50, 50));
|
||||||
|
m_tree_view->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
m_tree_view->setDragDropMode(QAbstractItemView::DragDrop);
|
m_tree_view->setDragDropMode(QAbstractItemView::DragDrop);
|
||||||
m_tree_view->setContextMenuPolicy(Qt::CustomContextMenu);
|
m_tree_view->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
m_tree_view->setAutoExpandDelay(500);
|
m_tree_view->setAutoExpandDelay(500);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user