MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / logicalIndex

Method logicalIndex

launcher/ui/instanceview/AccessibleInstanceView.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30int AccessibleInstanceView::logicalIndex(const QModelIndex& index) const
31{
32 if (!view()->model() || !index.isValid())
33 return -1;
34 return index.row() * (index.model()->columnCount()) + index.column();
35}
36
37AccessibleInstanceView::AccessibleInstanceView(QWidget* w) : QAccessibleObject(w)
38{

Callers

nothing calls this directly

Calls 3

modelMethod · 0.80
isValidMethod · 0.45
columnCountMethod · 0.45

Tested by

no test coverage detected