mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-06 19:12:30 +01:00
Add Qt version to build info
This commit is contained in:
parent
a84c5bd527
commit
d0d19971ee
@ -478,7 +478,7 @@ Item {
|
|||||||
SettingsButton {
|
SettingsButton {
|
||||||
icon.source: "qrc:/assets/icons/icon_launch.svg"
|
icon.source: "qrc:/assets/icons/icon_launch.svg"
|
||||||
headline: qsTr("Version")
|
headline: qsTr("Version")
|
||||||
description: qsTr("ScreenPlay Build Version ") + ScreenPlay.settings.gitBuildHash
|
description: qsTr("ScreenPlay Build Version \n") + ScreenPlay.settings.gitBuildHash
|
||||||
buttonText: qsTr("Open Changelog")
|
buttonText: qsTr("Open Changelog")
|
||||||
onButtonPressed: Qt.openUrlExternally("https://gitlab.com/kelteseth/ScreenPlay/-/releases")
|
onButtonPressed: Qt.openUrlExternally("https://gitlab.com/kelteseth/ScreenPlay/-/releases")
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,8 @@ Settings::Settings(const std::shared_ptr<GlobalVariables>& globalVariables,
|
|||||||
initInstalledPath();
|
initInstalledPath();
|
||||||
|
|
||||||
setupWidgetAndWindowPaths();
|
setupWidgetAndWindowPaths();
|
||||||
setGitBuildHash(COMPILE_INFO);
|
const QString qtVersion = QString("Qt Version: %1.%2.%3").arg(QT_VERSION_MAJOR).arg(QT_VERSION_MINOR).arg(QT_VERSION_PATCH);
|
||||||
|
setGitBuildHash(COMPILE_INFO + qtVersion);
|
||||||
setSteamVersion(!(QString(SCREENPLAY_STEAM).compare("OFF", Qt::CaseInsensitive) ? false : true));
|
setSteamVersion(!(QString(SCREENPLAY_STEAM).compare("OFF", Qt::CaseInsensitive) ? false : true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +195,7 @@ void Settings::restoreDefault(const QString& appConfigLocation, const QString& s
|
|||||||
|
|
||||||
void Settings::initInstalledPath()
|
void Settings::initInstalledPath()
|
||||||
{
|
{
|
||||||
//If empty use steam workshop location
|
// If empty use steam workshop location
|
||||||
if (QString(m_qSettings.value("ScreenPlayContentPath").toString()).isEmpty()) {
|
if (QString(m_qSettings.value("ScreenPlayContentPath").toString()).isEmpty()) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user