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

Method selectionCommand

Modules/SegmentationUI/src/QmitkMultiLabelTreeView.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22QItemSelectionModel::SelectionFlags QmitkMultiLabelTreeView::selectionCommand(const QModelIndex& index, const QEvent* event) const
23{
24 auto value = index.data(QmitkMultiLabelTreeModel::ItemModelRole::LabelInstanceValueRole);
25 if (index.column()!=0 || !value.isValid())
26 {
27 return QItemSelectionModel::NoUpdate;
28 }
29
30 return QAbstractItemView::selectionCommand(index, event);
31}
32
33void QmitkMultiLabelTreeView::leaveEvent(QEvent* event)
34{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected