1 #include "SUIT_ExceptionHandler.h"
3 #include "SUIT_MessageBox.h"
5 #include <qapplication.h>
7 /*!\class SUIT_ExceptionHandler
8 * Show exception message on error handler.
12 Checks: is internal handle on object \a o?
14 bool SUIT_ExceptionHandler::handle( QObject* o, QEvent* e )
16 return internalHandle( o, e );
20 Checks: is internal handle on object \a o?
22 bool SUIT_ExceptionHandler::internalHandle( QObject* o, QEvent* e )
24 return qApp ? qApp->QApplication::notify( o, e ) : false;
28 Show error message \a mgs, if application is not null.
30 void SUIT_ExceptionHandler::showMessage( const QString& title, const QString& msg )
35 SUIT_MessageBox::error1( qApp->mainWidget(), title, msg, "OK" );