3 #include "Application.h"
4 #include "platform/PlatformException.h"
9 Application::Application(int argc
, char *argv
[]) : QApplication(argc
, argv
) {
10 QCoreApplication::setApplicationName("Aesalon GUI");
11 QCoreApplication::setOrganizationName("Aesalon development team");
12 QCoreApplication::setOrganizationDomain("");
15 bool Application::notify(QObject
*object
, QEvent
*event
) {
17 return QApplication::notify(object
, event
);
19 catch(Platform::PlatformException pe
) {
20 QMessageBox::critical(NULL
, tr("Platform exception"), QString(pe
.get_message().c_str()), 0, 0);
23 catch(Misc::Exception e
) {
24 QMessageBox::critical(NULL
, tr("Exception"), QString(e
.get_message().c_str()), 0, 0);
30 } // namespace Aesalon