MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / indexViewToModel

Function indexViewToModel

src/modelutils.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74QModelIndex indexViewToModel(const QModelIndex& index, const QAbstractItemModel* model)
75{
76 if (index.model() == model) {
77 return index;
78 } else if (auto* proxy = qobject_cast<const QAbstractProxyModel*>(index.model())) {
79 return indexViewToModel(proxy->mapToSource(index), model);
80 } else {
81 return QModelIndex();
82 }
83}
84
85QModelIndexList indexViewToModel(const QModelIndexList& index,
86 const QAbstractItemModel* model)

Callers 13

indexViewToModelMethod · 0.85
selectedMethod · 0.85
setupMethod · 0.85
toggleSelectionStateMethod · 0.85
indexViewToModelMethod · 0.85
selectedMethod · 0.85
moveSelectionMethod · 0.85
removeSelectionMethod · 0.85
toggleSelectionStateMethod · 0.85
onDoubleClickedMethod · 0.85

Calls 3

QModelIndexClass · 0.85
modelMethod · 0.80
mapToSourceMethod · 0.45

Tested by

no test coverage detected