Clearly separate build data from run-time data.

This commit is contained in:
Seeker4 2019-06-02 10:24:17 -07:00
parent 59270e00c6
commit f4f1a4a002

View File

@ -192,9 +192,13 @@ QStringList buildInfo;
QStringList makeBuildInfo (QString relinfo, QString forcedEngine){
buildInfo << (STR_AppName + " " + VersionString + " " + relinfo);
buildInfo << (QObject::tr("Built with Qt") + " " + QT_VERSION_STR + " on " + __DATE__ + " " + __TIME__);
buildInfo << (getBranchVersion() + ", " + QObject::tr("Revision") + " " + GIT_REVISION);
buildInfo << (QObject::tr("Built on") + " " + QSysInfo::machineHostName() + " "
+ QObject::tr("running") + " " + QSysInfo::prettyProductName());
QString branch = "";
if (GIT_BRANCH != "master") {
branch = QObject::tr("Branch:") + " " + GIT_BRANCH + ", ";
}
buildInfo << branch + (QObject::tr("Revision")) + " " + GIT_REVISION;
buildInfo << QString("");
buildInfo << (QObject::tr("Operating system:") + " " + QSysInfo::prettyProductName());
buildInfo << (QObject::tr("Graphics Engine:") + " " + getOpenGLVersionString());
buildInfo << (QObject::tr("Graphics Engine type:") + " " + getGraphicsEngine());
if (forcedEngine != "")