MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / indexAt

Method indexAt

launcher/ui/instanceview/InstanceView.cpp:733–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733QModelIndex InstanceView::indexAt(const QPoint& point) const
734{
735 const_cast<InstanceView*>(this)->executeDelayedItemsLayout();
736
737 for (int i = 0; i < model()->rowCount(); ++i) {
738 QModelIndex index = model()->index(i, 0);
739 if (visualRect(index).contains(point)) {
740 return index;
741 }
742 }
743 return QModelIndex();
744}
745
746void InstanceView::setSelection(const QRect& rect, const QItemSelectionModel::SelectionFlags commands)
747{

Callers 4

eventFilterMethod · 0.80
childAtMethod · 0.80
eventFilterMethod · 0.80

Calls 4

QModelIndexClass · 0.85
rowCountMethod · 0.45
indexMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected