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

Method dragMoveEvent

launcher/ui/instanceview/InstanceView.cpp:620–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void InstanceView::dragMoveEvent(QDragMoveEvent *event)
621{
622 executeDelayedItemsLayout();
623
624 if (!isDragEventAccepted(event))
625 {
626 return;
627 }
628 m_lastDragPosition = event->pos() + offset();
629 viewport()->update();
630 event->accept();
631}
632
633void InstanceView::dragLeaveEvent(QDragLeaveEvent *event)
634{

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected