MCPcopy Create free account
hub / github.com/KDE/kdevelop / dragEnterEvent

Method dragEnterEvent

kdevplatform/shell/mainwindow.cpp:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void MainWindow::dragEnterEvent( QDragEnterEvent* ev )
210{
211 const QMimeData* mimeData = ev->mimeData();
212 if (mimeData->hasUrls()) {
213 ev->acceptProposedAction();
214 } else if (mimeData->hasText()) {
215 // also take text which contains a URL
216 const QUrl url = QUrl::fromUserInput(mimeData->text());
217 if (url.isValid()) {
218 ev->acceptProposedAction();
219 }
220 }
221}
222
223void MainWindow::dropEvent( QDropEvent* ev )
224{

Callers

nothing calls this directly

Calls 2

textMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected