-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cc
46 lines (39 loc) · 1.22 KB
/
main.cc
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
38
39
40
41
42
43
44
45
46
#include <QApplication>
#include <QtDebug>
#include <QSslSocket>
#include <QIcon>
#include "mainwindow.h"
#include "network_manager.h"
int main(int argc, char **argv) {
QApplication app(argc, argv);
app.setApplicationName("dox");
app.setOrganizationName("Word to the Wise");
app.setOrganizationDomain("wordtothewise.com");
app.setWindowIcon(QIcon(":/dox-icon.png"));
initNetworkManager(&app);
auto window = new MainWindow;
window->show();
qDebug() << "--- main start";
qDebug() << " compiled with Qt" << QT_VERSION_STR;
qDebug() << " running with Qt" << qVersion();
#ifdef Q_PROCESSOR_X86_64
qDebug() << " Q_PROCESSOR_X86_64 defined";
#endif
#ifdef Q_OS_WINRT
qDebug() << " Q_OS_WINRT defined";
#endif
#ifdef Q_OS_WIN
qDebug() << " Q_OS_WIN defined";
#endif
#ifdef Q_OS_WIN32
qDebug() << " Q_OS_WIN32 defined";
#endif
#ifdef Q_OS_WIN64
qDebug() << " Q_OS_WIN64 defined";
#endif
qDebug() << " supportsSsl" << QSslSocket::supportsSsl();
qDebug() << " sslLibraryBuildVersion" << QSslSocket::sslLibraryBuildVersionString();
qDebug() << " sslLibraryVersion" << QSslSocket::sslLibraryVersionString();
qDebug() << "--- main exec";
return app.exec();
}