-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (26 loc) · 806 Bytes
/
main.cpp
File metadata and controls
27 lines (26 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <QtGui>
#include <QApplication>
#include "mainwindow.h"
int main(int argc, char * argv[]) {
QApplication app(argc, argv);
QCoreApplication::setApplicationName("FloimQT");
QCoreApplication::setApplicationVersion("1.0.0");
QCoreApplication::setOrganizationName("Floim");
QCoreApplication::setOrganizationDomain("floim.com");
QUrl url;
if (argc > 1)
url = QUrl(argv[1]);
else
#if defined QT_NO_DEBUG
url = QUrl("https://floim.com/");
#else
url = QUrl("http://localhost:3000/");
#endif
MainWindow *browser = new MainWindow(url,app);
#if defined Q_OS_SYMBIAN || defined Q_WS_HILDON || defined Q_WS_MAEMO_5 || defined Q_WS_SIMULATOR
browser->showMaximized();
#else
browser->show();
#endif
return app.exec();
}