13 #ifndef QmitkSingleApplication_h
14 #define QmitkSingleApplication_h
18 #include <qtsingleapplication.h>
56 bool notify(QObject *receiver, QEvent *event)
override;
#define MITKAPPUTIL_EXPORT
A single-instance application with optional exception-safe event dispatching.
bool notify(QObject *receiver, QEvent *event) override
Reimplements QtSingleApplication::notify() to catch unhandled exceptions.
QmitkSingleApplication(int &argc, char **argv, bool safeMode=true)
Construct a QmitkSingleApplication.
void setSafeMode(bool safeMode)
Enable or disable safe mode.
bool getSafeMode() const
Query whether safe mode is currently enabled.