MCPcopy Create free account
hub / github.com/MITK/MITK / TreeItemFromIndex

Method TreeItemFromIndex

Modules/QtWidgets/src/QmitkDataStorageTreeModel.cpp:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126QmitkDataStorageTreeModel::TreeItem *QmitkDataStorageTreeModel::TreeItemFromIndex(const QModelIndex &index) const
127{
128 if (index.isValid())
129 return static_cast<TreeItem *>(index.internalPointer());
130 else
131 return m_Root;
132}
133Qt::DropActions QmitkDataStorageTreeModel::supportedDropActions() const
134{
135 return Qt::CopyAction | Qt::MoveAction;

Callers 6

GetNodeMethod · 0.95
rowCountMethod · 0.95
parentMethod · 0.95
dropMimeDataMethod · 0.95
dataMethod · 0.95
setDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected