Add clang version in compilation informations for macOS

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4982 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2017-06-27 15:48:26 +00:00
parent 06eefc793a
commit af7179091e

View File

@@ -67,9 +67,15 @@ QWidget *AboutQET::titleTab() const {
QLabel *title = new QLabel("<span style=\"font-weight:0;font-size:16pt;\">QElectroTech V " + QET::displayedVersion + "</span>");
QString compilation_info = "<br />" + tr("Compilation : ");
#ifdef __GNUC__
#ifdef __APPLE_CC__
compilation_info += " CLANG " + QString(__clang_version__ );
compilation_info += " - built with Qt " + QString(QT_VERSION_STR);
compilation_info += " - run with Qt "+ QString(qVersion());
#else
compilation_info += " GCC " + QString(__VERSION__);
compilation_info += " - built with Qt " + QString(QT_VERSION_STR);
compilation_info += " - run with Qt "+ QString(qVersion());
#endif
#endif
title -> setAlignment(Qt::AlignCenter);
title -> setText(title->text() + compilation_info);