gepetto-viewer
4.14.0
An user-friendly Graphical Interface
|
Go to the documentation of this file.
17 #ifndef GEPETTO_GUI_SAFEAPPLICATION_HH
18 #define GEPETTO_GUI_SAFEAPPLICATION_HH
24 #include <QApplication>
33 virtual bool safeNotify(QApplication* app, QObject* receiver, QEvent* e) = 0;
43 bool impl_notify(QApplication* app, QObject* receiver, QEvent* e) {
45 return app->QApplication::notify(receiver, e);
57 bool notify(QObject* receiver, QEvent* e) {
62 bool safeNotify(QApplication*, QObject*, QEvent*) {
70 #endif // GEPETTO_GUI_SAFEAPPLICATION_HH
bool impl_notify(QApplication *app, QObject *receiver, QEvent *e)
Definition: safeapplication.hh:43
Definition: safeapplication.hh:28
Definition: safeapplication.hh:53
Definition: action-search-bar.hh:27
SlotExceptionCatch * child_
Definition: safeapplication.hh:50
bool notify(QObject *receiver, QEvent *e)
Definition: safeapplication.hh:57
void addAsLeaf(SlotExceptionCatch *child)
Definition: safeapplication.hh:35
SlotExceptionCatch()
Definition: safeapplication.hh:30
virtual bool safeNotify(QApplication *app, QObject *receiver, QEvent *e)=0
Inherited classes must call impl_notify method surronded by a try/catch.
SafeApplication(int &argc, char **argv)
Definition: safeapplication.hh:55