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

Method cellAt

launcher/ui/instanceview/AccessibleInstanceView.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56QAccessibleInterface *AccessibleInstanceView::cellAt(int row, int column) const
57{
58 if (!view()->model()) {
59 return 0;
60 }
61
62 QModelIndex index = view()->model()->index(row, column, view()->rootIndex());
63 if (Q_UNLIKELY(!index.isValid())) {
64 qWarning() << "AccessibleInstanceView::cellAt: invalid index: " << index << " for " << view();
65 return 0;
66 }
67
68 return child(logicalIndex(index));
69}
70
71QAccessibleInterface *AccessibleInstanceView::caption() const
72{

Callers

nothing calls this directly

Calls 3

modelMethod · 0.80
indexMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected