17 #ifndef GEPETTO_GUI_SAFEAPPLICATION_HH 18 #define GEPETTO_GUI_SAFEAPPLICATION_HH 22 #include <QApplication> 32 virtual bool safeNotify(QApplication* app, QObject* receiver, QEvent* e) = 0;
42 bool impl_notify(QApplication* app, QObject* receiver, QEvent* e) {
44 return app->QApplication::notify(receiver, e);
56 bool notify(QObject* receiver, QEvent* e) {
61 bool safeNotify(QApplication*, QObject*, QEvent*) {
69 #endif // GEPETTO_GUI_SAFEAPPLICATION_HH Definition: safeapplication.hh:52
Definition: safeapplication.hh:27
Definition: action-search-bar.hh:26
virtual bool safeNotify(QApplication *app, QObject *receiver, QEvent *e)=0
Inherited classes must call impl_notify method surronded by a try/catch.
bool impl_notify(QApplication *app, QObject *receiver, QEvent *e)
Definition: safeapplication.hh:42
bool notify(QObject *receiver, QEvent *e)
Definition: safeapplication.hh:56
SafeApplication(int &argc, char **argv)
Definition: safeapplication.hh:54
void addAsLeaf(SlotExceptionCatch *child)
Definition: safeapplication.hh:34
SlotExceptionCatch()
Definition: safeapplication.hh:29
SlotExceptionCatch * child_
Definition: safeapplication.hh:49