This repository has been archived on 2023-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
verticallite/application.h

31 lines
621 B
C++

#ifndef APPLICATION_H
#define APPLICATION_H
#include <QApplication>
#include <QDebug>
class Application : public QApplication
{
Q_OBJECT
public:
Application(int &c, char **v);
bool notify(QObject *rec, QEvent *ev) {
// cDebug() << "Called Application::notify()" << endl;
try {
return QApplication::notify(rec, ev);
}
catch (char const *str) {
qDebug() << "EXCEPTION: " << str << endl;
return false;
}
catch (...) {
qDebug() << "Unknown exception!" << endl;
//abort();
}
}
};
#endif // APPLICATION_H