This commit is contained in:
Christophe Dumez
2010-06-10 09:04:52 +00:00
parent 6cb6d2724b
commit e3360713de

View File

@@ -36,16 +36,16 @@ QMacApplication::QMacApplication(QString appid, int &argc, char** argv) :
{ {
} }
bool QMacApplication::event(QEvent * event) { bool QMacApplication::event(QEvent * ev) {
switch (event->type()) { switch (ev->type()) {
case QEvent::FileOpen: case QEvent::FileOpen:
{ {
QString path = static_cast<QFileOpenEvent *>(event)->file(); QString path = static_cast<QFileOpenEvent *>(ev)->file();
emit newFileOpenMacEvent(path); emit newFileOpenMacEvent(path);
return true; return true;
} }
default: default:
return QApplication::QtSingleApplication(event); return QtSingleApplication::event(ev);
} }
} }