aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
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;
/**