MCPcopy Create free account
hub / github.com/cxasm/notepad-- / event

Method event

src/main.cpp:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 bool event(QEvent *event)
107 {
108 if (event->type() == QEvent::FileOpen) {
109 QFileOpenEvent *openEvent = static_cast<QFileOpenEvent *>(event);
110 qDebug() << "Open file" << openEvent->file();
111 s_openfile = openEvent->file();
112 openfile(s_openfile);
113 }
114
115 return QApplication::event(event);
116 }
117 QString s_openfile;
118 };
119#endif

Callers

nothing calls this directly

Calls 1

openfileFunction · 0.85

Tested by

no test coverage detected