mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-03 14:34:57 -04:00
Print build and system information at the start of the log
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <QProxyStyle>
|
||||
#include <QStyleFactory>
|
||||
#include <QFontDatabase>
|
||||
#include <QSysInfo>
|
||||
|
||||
#include "loggerwithfile.h"
|
||||
#include "mainwindow.h"
|
||||
@@ -93,6 +94,17 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
|
||||
MainParser parser;
|
||||
parser.parse(*qApp);
|
||||
|
||||
#if QT_VERSION >= 0x050400
|
||||
qInfo("%s v%s Qt %s %s %s",
|
||||
qPrintable(qApp->applicationName()),
|
||||
qPrintable(qApp->applicationVersion()),
|
||||
qPrintable(QString(QT_VERSION_STR)),
|
||||
qPrintable(QSysInfo::currentCpuArchitecture()),
|
||||
qPrintable(QSysInfo::prettyProductName()));
|
||||
#else
|
||||
qInfo("%s v%s Qt %s", qPrintable(qApp->applicationName()), qPrintable((qApp->applicationVersion()), qPrintable(QString(QT_VERSION_STR)));
|
||||
#endif
|
||||
|
||||
MainWindow w(logger, parser);
|
||||
w.show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user