MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / event

Method event

src/NotepadNextApplication.cpp:424–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424bool NotepadNextApplication::event(QEvent *event)
425{
426 // Handle the QFileOpenEvent to open files on MacOS X.
427 if (event->type() == QEvent::FileOpen) {
428 QFileOpenEvent *fileOpenEvent = static_cast<QFileOpenEvent*>(event);
429
430 qInfo("QFileOpenEvent %s", qUtf8Printable(fileOpenEvent->file()));
431
432 openFiles(QStringList() << fileOpenEvent->file());
433
434 return true;
435 }
436
437 return SingleApplication::event(event);
438}
439
440void NotepadNextApplication::openFiles(const QStringList &files)
441{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected