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

Method mapToSource

src/modlistbypriorityproxy.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177QModelIndex ModListByPriorityProxy::mapToSource(const QModelIndex& proxyIndex) const
178{
179 if (!proxyIndex.isValid()) {
180 return QModelIndex();
181 }
182 auto* item = static_cast<TreeItem*>(proxyIndex.internalPointer());
183
184 return sourceModel()->index(item->index, proxyIndex.column());
185}
186
187int ModListByPriorityProxy::rowCount(const QModelIndex& parent) const
188{

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.85
isValidMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected