aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-28 17:45:39 +0000
committersaturneric <[email protected]>2024-07-28 17:45:39 +0000
commit7a552f4d9dc0455b66ea2329bc1cd06a71bc6a79 (patch)
treec344bf0615bc49f80bb81519810bade0d6ea05ba /src/core
parentfix: errors in judgment conditions (diff)
downloadGpgFrontend-sdk/2.1.3.tar.gz
GpgFrontend-sdk/2.1.3.zip
feat: support more build modesdk/2.1.3
Diffstat (limited to 'src/core')
-rw-r--r--src/core/function/GlobalSettingStation.h2
-rw-r--r--src/core/utils/BuildInfoUtils.cpp2
-rw-r--r--src/core/utils/BuildInfoUtils.h7
3 files changed, 11 insertions, 0 deletions
diff --git a/src/core/function/GlobalSettingStation.h b/src/core/function/GlobalSettingStation.h
index c907bdb5..d3287ac2 100644
--- a/src/core/function/GlobalSettingStation.h
+++ b/src/core/function/GlobalSettingStation.h
@@ -28,6 +28,8 @@
#pragma once
+#include <qsettings.h>
+
#include "core/function/basic/GpgFunctionObject.h"
namespace GpgFrontend {
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)
diff --git a/src/core/utils/BuildInfoUtils.h b/src/core/utils/BuildInfoUtils.h
index 07b0bb21..dfc9efe3 100644
--- a/src/core/utils/BuildInfoUtils.h
+++ b/src/core/utils/BuildInfoUtils.h
@@ -37,6 +37,13 @@ namespace GpgFrontend {
*
* @return QString
*/
+auto GPGFRONTEND_CORE_EXPORT GetProjectName() -> QString;
+
+/**
+ * @brief
+ *
+ * @return QString
+ */
auto GPGFRONTEND_CORE_EXPORT GetProjectVersion() -> QString;
/**