added which compiler in the AboutDialog
This commit is contained in:
parent
0e75913254
commit
afbe8615d5
2 changed files with 17 additions and 1 deletions
|
@ -30,7 +30,8 @@ AboutDialog::AboutDialog(QWidget *parent) :
|
|||
QString appVersion = qApp->applicationVersion();
|
||||
QString buildType = GTA5SYNC_BUILDTYPE;
|
||||
buildType.replace("_", " ");
|
||||
ui->labAbout->setText(aboutStr.arg(appVersion % " (" % buildType % ")", QT_VERSION_STR, qVersion(), __DATE__, __TIME__));
|
||||
QString buildStr = QString("%1, %2").arg(QT_VERSION_STR, GTA5SYNC_COMPILER);
|
||||
ui->labAbout->setText(aboutStr.arg(appVersion % " (" % buildType % ")", buildStr, qVersion(), __DATE__, __TIME__));
|
||||
}
|
||||
|
||||
AboutDialog::~AboutDialog()
|
||||
|
|
15
config.h
15
config.h
|
@ -18,6 +18,7 @@
|
|||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
#include <QString>
|
||||
|
||||
#ifndef GTA5SYNC_APPVENDOR
|
||||
#define GTA5SYNC_APPVENDOR "Syping"
|
||||
|
@ -51,4 +52,18 @@
|
|||
#undef GTA5SYNC_WIN
|
||||
#endif
|
||||
|
||||
#ifndef GTA5SYNC_COMPILER
|
||||
#ifdef __clang__
|
||||
#define GTA5SYNC_COMPILER QString("Clang %1.%2.%3").arg(QString::number(__clang_major__), QString::number(__clang_minor__), QString::number(__clang_patchlevel__))
|
||||
#elif defined(__GNUC__)
|
||||
#define GTA5SYNC_COMPILER QString("GCC %1.%2.%3").arg(QString::number(__GNUC__), QString::number(__GNUC_MINOR__), QString::number(__GNUC_PATCHLEVEL__))
|
||||
#elif defined(__GNUG__)
|
||||
#define GTA5SYNC_COMPILER QString("GCC %1.%2.%3").arg(QString::number(__GNUG__), QString::number(__GNUC_MINOR__), QString::number(__GNUC_PATCHLEVEL__))
|
||||
#elif defined(_MSC_VER)
|
||||
#define GTA5SYNC_COMPILER QString("MSVC %1").arg(QString::number(_MSC_VER).left(2))
|
||||
#else
|
||||
#define GTA5SYNC_COMPILER "Unknown"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
|
Loading…
Reference in a new issue