Mercurial > trustbridge
comparison ui/management.cpp @ 327:3261b2a9cab7
Added a first version of the management application gui.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 08 Apr 2014 16:28:07 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
326:ad28f6b60e6b | 327:3261b2a9cab7 |
---|---|
1 #include "managementwindow.h" | |
2 | |
3 #include <QApplication> | |
4 #include <QtPlugin> | |
5 #include <QMessageBox> | |
6 #include <QSettings> | |
7 | |
8 #ifndef VERSION | |
9 #define VERSION "0.0.1" | |
10 #endif | |
11 | |
12 #ifndef APPNAME | |
13 #define APPNAME "management" | |
14 #endif | |
15 | |
16 #ifndef ORGANIZATION | |
17 #define ORGANIZATION "m13org" | |
18 #endif | |
19 | |
20 #ifdef Q_OS_WIN | |
21 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) | |
22 #else | |
23 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) | |
24 #endif | |
25 | |
26 int main(int argc, char **argv) | |
27 { | |
28 QApplication app (argc, argv); | |
29 | |
30 QStringList arguments = QApplication::arguments(); | |
31 | |
32 QApplication::setOrganizationName(QString::fromLatin1(ORGANIZATION)); | |
33 QApplication::setApplicationName(QString::fromLatin1(APPNAME)); | |
34 QApplication::setApplicationVersion(QString::fromLatin1(VERSION)); | |
35 QSettings::setDefaultFormat(QSettings::IniFormat); | |
36 | |
37 ManagementWindow mgntWin; | |
38 mgntWin.show(); | |
39 | |
40 return app.exec(); | |
41 } |