mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed header from tree view and added support for ExtendedSelection
This commit is contained in:
parent
15f3e793f8
commit
50ea7a0808
@ -563,6 +563,15 @@ void RiuMainWindow::createDockPanels()
|
||||
m_projectTreeView = new caf::PdmUiTreeView(this);
|
||||
dockWidget->setWidget(m_projectTreeView);
|
||||
|
||||
m_projectTreeView->treeView()->setHeaderHidden(true);
|
||||
m_projectTreeView->treeView()->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
|
||||
// TODO :Drag and drop configuration
|
||||
// m_projectTreeView->treeView()->setDragEnabled(true);
|
||||
// m_projectTreeView->treeView()->viewport()->setAcceptDrops(true);
|
||||
// m_projectTreeView->treeView()->setDropIndicatorShown(true);
|
||||
// m_projectTreeView->treeView()->setDragDropMode(QAbstractItemView::DragDrop);
|
||||
|
||||
addDockWidget(Qt::RightDockWidgetArea, dockWidget);
|
||||
|
||||
connect(m_projectTreeView, SIGNAL(selectionChanged()), this, SLOT(selectedObjectsChanged()));
|
||||
|
Loading…
Reference in New Issue
Block a user