From 63dbe4a917d89c30b0bf5c45d65c2a2e9ccb907b Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 17 May 2024 18:33:21 +0200 Subject: fix: cannot show version in about tab --- src/core/utils/BuildInfoUtils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/utils/BuildInfoUtils.cpp') diff --git a/src/core/utils/BuildInfoUtils.cpp b/src/core/utils/BuildInfoUtils.cpp index a7d914ef..261057b7 100644 --- a/src/core/utils/BuildInfoUtils.cpp +++ b/src/core/utils/BuildInfoUtils.cpp @@ -6,8 +6,9 @@ namespace GpgFrontend { auto GetProjectVersion() -> QString { - return QString("v") + VERSION_MAJOR + "." + VERSION_MINOR + "." + - VERSION_PATCH; + return (QStringList{} << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." + << VERSION_PATCH) + .join(""); } auto GetProjectBuildVersion() -> QString { return BUILD_VERSION; } -- cgit v1.2.3 From 3ef497cbeb8835ef13e20c690a4fb83a9f5c4eac Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 28 Jul 2024 19:45:39 +0200 Subject: feat: support more build mode --- src/core/utils/BuildInfoUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/utils/BuildInfoUtils.cpp') diff --git a/src/core/utils/BuildInfoUtils.cpp b/src/core/utils/BuildInfoUtils.cpp index 261057b7..65a0b43a 100644 --- a/src/core/utils/BuildInfoUtils.cpp +++ b/src/core/utils/BuildInfoUtils.cpp @@ -5,6 +5,8 @@ namespace GpgFrontend { +auto GetProjectName() -> QString { return {PROJECT_NAME}; } + auto GetProjectVersion() -> QString { return (QStringList{} << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." << VERSION_PATCH) -- cgit v1.2.3