App: Use the legacy macOS version functionality for About FreeCAD dialog (#20858)

This commit is contained in:
Jackson Oursland
2025-04-17 21:41:18 -07:00
committed by GitHub
parent 858ea60b37
commit 6be09c29f6

View File

@@ -64,6 +64,7 @@
#include <QDir>
#include <QFileInfo>
#include <QProcessEnvironment>
#include <QRegularExpression>
#include <QSettings>
#include <QStandardPaths>
#include <Inventor/C/basic.h>
@@ -127,7 +128,6 @@
#include "OriginGroupExtension.h"
#include "OriginGroupExtensionPy.h"
#include "SuppressibleExtension.h"
#include "SuppressibleExtensionPy.h"
#include "Part.h"
#include "GeoFeaturePy.h"
#include "Placement.h"
@@ -3542,7 +3542,6 @@ std::string Application::FindHomePath(const char* sCall)
QString Application::prettyProductInfoWrapper()
{
auto productName = QSysInfo::prettyProductName();
#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
#ifdef FC_OS_MACOSX
auto macosVersionFile =
QStringLiteral("/System/Library/CoreServices/.SystemVersionPlatform.plist");
@@ -3566,7 +3565,6 @@ QString Application::prettyProductInfoWrapper()
}
}
#endif
#endif
#ifdef FC_OS_WIN64
QSettings regKey {
QStringLiteral("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"),
@@ -3795,4 +3793,4 @@ void Application::getVerboseAddOnsInfo(QTextStream& str, const std::map<std::str
addModuleInfo(str, mod, firstMod);
}
}
}
}