comparison ui/administrator.cpp @ 336:26817025351f

merge
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 09 Apr 2014 13:49:59 +0000
parents de94c4ec22b1
children 17e1c8f37d72
comparison
equal deleted inserted replaced
332:81a205fc651e 336:26817025351f
1 #include "administratorwindow.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 "administrator"
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 AdministratorWindow adminWin;
38 adminWin.show();
39
40 return app.exec();
41 }

http://wald.intevation.org/projects/trustbridge/