]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/app/main.cpp
catch exceptions which leak outside of event handlers
[toast/confclerk.git] / src / app / main.cpp
index acd5e06e66b241a044b06b19af79f2f2529f9616..6a32ae9e8dfbe385abe3b9c6ddbc3998d8f481eb 100644 (file)
@@ -1,9 +1,27 @@
+/*
+ * Copyright (C) 2010 Ixonos Plc.
+ *
+ * This file is part of fosdem-schedule.
+ *
+ * fosdem-schedule is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation, either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * fosdem-schedule is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * fosdem-schedule.  If not, see <http://www.gnu.org/licenses/>.
+ */
 #include <mainwindow.h>
 
-#include <QtGui/QApplication>
 #include <sqlengine.h>
 
 #include "eventdialog.h"
+#include "application.h"
 
 #ifdef MAEMO
 //#include <alarmdialog.h>
@@ -18,8 +36,8 @@ int main(int argc, char *argv[])
     Q_INIT_RESOURCE(maps);
     Q_INIT_RESOURCE(db);
 
-    QApplication a(argc, argv);
-    QApplication::setWindowIcon(QIcon(":/icons/fosdem.png"));
+    Application a(argc, argv);
+    Application::setWindowIcon(QIcon(":/icons/fosdem.png"));
 
     SqlEngine::initialize(); // creates "SQLITE" DB connection