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

Method draggablePaintPairs

launcher/ui/instanceview/InstanceView.cpp:802–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802QList<std::pair<QRect, QModelIndex>> InstanceView::draggablePaintPairs(const QModelIndexList& indices, QRect* r) const
803{
804 Q_ASSERT(r);
805 QRect& rect = *r;
806 QList<std::pair<QRect, QModelIndex>> ret;
807 for (int i = 0; i < indices.count(); ++i) {
808 const QModelIndex& index = indices.at(i);
809 const QRect current = geometryRect(index);
810 ret += std::make_pair(current, index);
811 rect |= current;
812 }
813 return ret;
814}
815
816bool InstanceView::isDragEventAccepted([[maybe_unused]] QDropEvent* event)
817{

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected