mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-23 19:02:07 -05:00
16 lines
375 B
C++
16 lines
375 B
C++
#include "tapplication.h"
|
|
#include <QFileOpenEvent>
|
|
|
|
tApplication::tApplication(int& argc, char** argv) : QApplication(argc, argv)
|
|
{
|
|
|
|
}
|
|
|
|
bool tApplication::event(QEvent *event) {
|
|
if (event->type() == QEvent::FileOpen) {
|
|
QFileOpenEvent *openEvent = (QFileOpenEvent*) event;
|
|
emit openFile(openEvent->file());
|
|
}
|
|
|
|
return QApplication::event(event);
|
|
}
|