3 #include <QApplication>
20 virtual bool notify( QObject * receiver, QEvent * event )
override
27 return QApplication::notify(receiver, event);
29 catch( std::runtime_error& er )
31 QString msg = QString(
"Uncaught Exception! ") + QString(er.what());
32 QMessageBox::critical(0,
"Exception", msg );
34 catch(
const std::exception& ex)
36 QString msg = QString(
"Uncaught Exception! ") + QString(ex.what());
37 QMessageBox::critical(0,
"Exception", msg );
43 qDebug() <<
"Attention. Uncaught Exception! Forgot to catch exception?";
51 return QApplication::notify(receiver, event);
67 #define lxApp (static_cast<LxApplication *>(QCoreApplication::instance()))