MCPcopy Create free account
hub / github.com/deskflow/deskflow / dragEnterEvent

Method dragEnterEvent

src/lib/gui/widgets/ScreenSetupView.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void ScreenSetupView::dragEnterEvent(QDragEnterEvent *event)
83{
84 // we accept anything that enters us by a drag as long as the
85 // mime type is okay. anything else is dealt with in dragMoveEvent()
86 if (event->mimeData()->hasFormat(ScreenSetupModel::mimeType()))
87 event->accept();
88 else
89 event->ignore();
90}
91
92void ScreenSetupView::dragMoveEvent(QDragMoveEvent *event)
93{

Callers

nothing calls this directly

Calls 4

hasFormatMethod · 0.80
mimeDataMethod · 0.80
ignoreMethod · 0.80
acceptMethod · 0.45

Tested by

no test coverage detected