gepetto-viewer
4.13.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
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
bool impl_notify(QApplication *app, QObject *receiver, QEvent *e)
Definition: safeapplication.hh:42
Definition: safeapplication.hh:27
Definition: safeapplication.hh:52
Definition: action-search-bar.hh:26
SlotExceptionCatch * child_
Definition: safeapplication.hh:49
bool notify(QObject *receiver, QEvent *e)
Definition: safeapplication.hh:56
void addAsLeaf(SlotExceptionCatch *child)
Definition: safeapplication.hh:34
SlotExceptionCatch()
Definition: safeapplication.hh:29
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:54