Mercurial > trustbridge
comparison ui/main.cpp @ 17:c12825a651ed
Read out content-length and use this to skip existing files
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 19 Feb 2014 14:22:26 +0000 |
parents | 225a5ec20dad |
children | f22a99f7cb69 |
comparison
equal
deleted
inserted
replaced
16:225a5ec20dad | 17:c12825a651ed |
---|---|
2 | 2 |
3 #include <QApplication> | 3 #include <QApplication> |
4 #include <QSystemTrayIcon> | 4 #include <QSystemTrayIcon> |
5 #include <QtPlugin> | 5 #include <QtPlugin> |
6 #include <QMessageBox> | 6 #include <QMessageBox> |
7 #include <QSettings> | |
7 | 8 |
8 #ifndef VERSION | 9 #ifndef VERSION |
9 #define VERSION "0.0.1" | 10 #define VERSION "0.0.1" |
10 #endif | 11 #endif |
11 | 12 |
37 | 38 |
38 QApplication::setQuitOnLastWindowClosed(false); | 39 QApplication::setQuitOnLastWindowClosed(false); |
39 QApplication::setOrganizationName(QString::fromLatin1(ORGANIZATION)); | 40 QApplication::setOrganizationName(QString::fromLatin1(ORGANIZATION)); |
40 QApplication::setApplicationName(QString::fromLatin1(APPNAME)); | 41 QApplication::setApplicationName(QString::fromLatin1(APPNAME)); |
41 QApplication::setApplicationVersion(QString::fromLatin1(VERSION)); | 42 QApplication::setApplicationVersion(QString::fromLatin1(VERSION)); |
43 QSettings::setDefaultFormat(QSettings::IniFormat); | |
42 | 44 |
43 MainWindow mainWin; | 45 MainWindow mainWin; |
44 mainWin.show(); | 46 mainWin.show(); |
45 | 47 |
46 return app.exec(); | 48 return app.exec(); |