forked from francescmm/GitQlient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
37 lines (25 loc) · 814 Bytes
/
main.cpp
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
28
29
30
31
32
33
34
35
36
37
#include <QApplication>
#include <QFontDatabase>
#include <QIcon>
#include <GitQlient.h>
#include <QLogger.h>
using namespace QLogger;
int main(int argc, char *argv[])
{
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
QApplication app(argc, argv);
QStringList arguments;
auto argNum = argc;
while (argNum--)
arguments.prepend(argv[argNum]);
QApplication::setOrganizationName("CescSoftware");
QApplication::setOrganizationDomain("francescmm.com");
QApplication::setApplicationName("GitQlient");
QApplication::setWindowIcon(QIcon(":/icons/GitQlientLogoIco"));
QFontDatabase::addApplicationFont(":/Ubuntu");
QFontDatabase::addApplicationFont(":/UbuntuMono");
GitQlient mainWin(arguments);
mainWin.showMaximized();
const auto ret = app.exec();
return ret;
}