MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / dropEvent

Method dropEvent

MiniZincIDE/mainwindow.cpp:616–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void MainWindow::dropEvent(QDropEvent* event) {
617 const QMimeData* mimeData = event->mimeData();
618 if (mimeData->hasUrls()) {
619 QList<QUrl> urlList = mimeData->urls();
620 for (int i=0; i<urlList.size(); i++) {
621 openFile(urlList[i].toLocalFile());
622 }
623 }
624 event->acceptProposedAction();
625}
626
627void MainWindow::tabChange(int tab) {
628 if (curEditor) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected