diff --git a/src/dialogs/AboutDialog.cpp b/src/dialogs/AboutDialog.cpp index a2d6e590..9fd1c8e6 100644 --- a/src/dialogs/AboutDialog.cpp +++ b/src/dialogs/AboutDialog.cpp @@ -28,7 +28,8 @@ AboutDialog::AboutDialog(QWidget *parent) : QString aboutString("
" + tr("Optional Features:") + "
"
+ QString("Python: %1
").arg(
#ifdef CUTTER_ENABLE_PYTHON
@@ -91,7 +92,7 @@ void AboutDialog::on_checkForUpdatesButton_clicked()
connect(&updateWorker, &UpdateWorker::checkComplete, &waitDialog, &QProgressDialog::cancel);
connect(&updateWorker, &UpdateWorker::checkComplete,
- [&updateWorker](const QVersionNumber &version, const QString & error) {
+ [&updateWorker](const QVersionNumber & version, const QString & error) {
if (!error.isEmpty()) {
QMessageBox::critical(nullptr, tr("Error!"), error);
} else {
@@ -111,3 +112,32 @@ void AboutDialog::on_updatesCheckBox_stateChanged(int)
{
Config()->setAutoUpdateEnabled(!Config()->getAutoUpdateEnabled());
}
+
+static QString compilerString()
+{
+#if defined(Q_CC_CLANG) // must be before GNU, because clang claims to be GNU too
+ QString isAppleString;
+#if defined(__apple_build_version__) // Apple clang has other version numbers
+ isAppleString = QLatin1String(" (Apple)");
+#endif
+ return QLatin1String("Clang " ) + QString::number(__clang_major__) + QLatin1Char('.')
+ + QString::number(__clang_minor__) + isAppleString;
+#elif defined(Q_CC_GNU)
+ return QLatin1String("GCC " ) + QLatin1String(__VERSION__);
+#elif defined(Q_CC_MSVC)
+ if (_MSC_VER > 1999)
+ return QLatin1String("MSVC