Initial import.
[dorian] / main.cpp
1 #ifdef Q_OS_UNIX
2 #include <unistd.h>
3 #endif
4
5 #include <QtGui/QApplication>
6
7 #include "mainwindow.h"
8
9 int main(int argc, char *argv[])
10 {
11     QApplication a(argc, argv);
12     a.setApplicationName("Dorian");
13     a.setApplicationVersion("0.0.1");
14     a.setOrganizationDomain("pipacs.com");
15     a.setOrganizationName("Pipacs");
16
17     MainWindow w;
18 #ifdef Q_WS_S60
19     w.showMaximized();
20 #else
21     w.show();
22 #endif
23
24     int ret = a.exec();
25     if (ret == 1000) {
26 #ifdef Q_OS_UNIX
27         extern char **environ;
28         execve(argv[0], argv, environ);
29 #endif
30     }
31     return ret;
32 }