Changeset 77e06ae for src/app


Ignore:
Timestamp:
04/12/10 08:43:53 (12 years ago)
Author:
kirilma <kirilma@…>
Branches:
master, qt5
Children:
c129da26
Parents:
f548c17
Message:

catch exceptions which leak outside of event handlers

If we do not do this, QT will exit from event loop.

Location:
src/app
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/app/app.pro

    rf548c17 r77e06ae  
    1818
    1919HEADERS += appsettings.h \
     20        application.h \
    2021    alarmdbus.h \
    2122        alarmdbusadaptorp.h
    2223
    2324SOURCES += main.cpp \
     25           application.cpp \
    2426           appsettings.cpp \
    2527    alarmdbus.cpp \
  • src/app/main.cpp

    rf548c17 r77e06ae  
    1919#include <mainwindow.h>
    2020
    21 #include <QtGui/QApplication>
    2221#include <sqlengine.h>
    2322
    2423#include "eventdialog.h"
     24#include "application.h"
    2525
    2626#ifdef MAEMO
     
    3737    Q_INIT_RESOURCE(db);
    3838
    39     QApplication a(argc, argv);
    40     QApplication::setWindowIcon(QIcon(":/icons/fosdem.png"));
     39    Application a(argc, argv);
     40    Application::setWindowIcon(QIcon(":/icons/fosdem.png"));
    4141
    4242    SqlEngine::initialize(); // creates "SQLITE" DB connection
Note: See TracChangeset for help on using the changeset viewer.