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

Method setSelection

launcher/ui/instanceview/InstanceView.cpp:763–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763void InstanceView::setSelection(const QRect& rect, const QItemSelectionModel::SelectionFlags commands)
764{
765 executeDelayedItemsLayout();
766
767 for (int i = 0; i < model()->rowCount(); ++i) {
768 QModelIndex index = model()->index(i, 0);
769 QRect itemRect = visualRect(index);
770 if (itemRect.intersects(rect)) {
771 selectionModel()->select(index, commands);
772 update(itemRect.translated(-offset()));
773 }
774 }
775}
776
777QPixmap InstanceView::renderToPixmap(const QModelIndexList& indices, QRect* r) const
778{

Callers

nothing calls this directly

Calls 2

rowCountMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected