MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / logicalIndex

Method logicalIndex

launcher/ui/instanceview/AccessibleInstanceView.cpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

modelMethod · 0.80
isValidMethod · 0.45
columnCountMethod · 0.45

Tested by

no test coverage detected