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

Method indexAt

launcher/ui/instanceview/InstanceView.cpp:750–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750QModelIndex InstanceView::indexAt(const QPoint& point) const
751{
752 const_cast<InstanceView*>(this)->executeDelayedItemsLayout();
753
754 for (int i = 0; i < model()->rowCount(); ++i) {
755 QModelIndex index = model()->index(i, 0);
756 if (visualRect(index).contains(point)) {
757 return index;
758 }
759 }
760 return QModelIndex();
761}
762
763void InstanceView::setSelection(const QRect& rect, const QItemSelectionModel::SelectionFlags commands)
764{

Callers 3

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