[qet] qet/qet: [4982] Add clang version in compilation informations for macOS |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4982
Author: scorpio810
Date: 2017-06-27 17:48:26 +0200 (Tue, 27 Jun 2017)
Log Message:
-----------
Add clang version in compilation informations for macOS
Modified Paths:
--------------
trunk/sources/aboutqet.cpp
Modified: trunk/sources/aboutqet.cpp
===================================================================
--- trunk/sources/aboutqet.cpp 2017-06-27 14:49:46 UTC (rev 4981)
+++ trunk/sources/aboutqet.cpp 2017-06-27 15:48:26 UTC (rev 4982)
@@ -67,10 +67,16 @@
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);
title -> setTextFormat(Qt::RichText);