MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / dropOccured

Method dropOccured

gui/qt/sendinghandler.cpp:85–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void SendingHandler::dropOccured(QDropEvent *e, int location) {
86 if (guiSend || guiDebug) {
87 e->ignore();
88 return;
89 }
90
91 const QMimeData* mime_data = e->mimeData();
92 if (!mime_data->hasUrls()) {
93 return;
94 }
95
96 QStringList files;
97 for(auto &&url : mime_data->urls()) {
98 const QString filePath = url.toLocalFile();
99 files.append(filePath);
100 }
101
102 sendFiles(files, location);
103}
104
105void SendingHandler::resendSelected() {
106 QStringList files;

Callers 2

dropEventMethod · 0.80
dropEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected