-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.cpp
27 lines (22 loc) · 823 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
// Qt includes
#include <QApplication>
#include <QtGlobal>
// local includes
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
qSetMessagePattern(QStringLiteral("%{time dd.MM.yyyy HH:mm:ss.zzz} "
"["
"%{if-debug}D%{endif}"
"%{if-info}I%{endif}"
"%{if-warning}W%{endif}"
"%{if-critical}C%{endif}"
"%{if-fatal}F%{endif}"
"] "
"%{function}(): "
"%{message}"));
MainWindow mainWindow;
mainWindow.show();
return a.exec();
}