diff --git a/app/main.cpp b/app/main.cpp index 0b02ffef8..09e1c6e12 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #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(); diff --git a/appsrv/main.cpp b/appsrv/main.cpp index 775671472..b4de7070d 100644 --- a/appsrv/main.cpp +++ b/appsrv/main.cpp @@ -17,6 +17,7 @@ /////////////////////////////////////////////////////////////////////////////////// #include +#include #include #include @@ -62,6 +63,18 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo MainParser parser; parser.parse(a); + +#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 + MainCore m(logger, parser, &a); // This will cause the application to exit when the main core is finished