(#467) Using subclassed treeview to notify the model about drag end

Using new class PdmUiTreeViewWidget instead of QTreeView in
PdmUiTreeViewEditor. PdmUiTreeViewWidget handles drag leave events and
calls endDrag() on the model.
This commit is contained in:
Pål Hagen
2015-10-21 17:20:12 +02:00
parent b046ca0769
commit f4bbbcb7a2
5 changed files with 47 additions and 10 deletions

View File

@@ -794,6 +794,17 @@ void PdmUiTreeViewModel::setDragDropHandle(PdmUiDragDropHandle* dragDropHandle)
m_dragDropHandle = dragDropHandle;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmUiTreeViewModel::endDrag()
{
if (m_dragDropHandle)
{
m_dragDropHandle->endDrag();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------