MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / dropEvent

Method dropEvent

example/mainwindow.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66void MainWindow::dropEvent(QDropEvent *event)
67{
68 if (event->mimeData()->hasUrls())
69 {
70 QList<QUrl> urls = event->mimeData()->urls();
71 QString filePath = urls.at(0).toLocalFile();
72 loadFile(filePath);
73 event->accept();
74 }
75}
76
77/*****************************************************************************/
78/* Private Slots */

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.80

Tested by

no test coverage detected