aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendApplication.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-04-21 19:49:04 +0000
committersaturneric <[email protected]>2024-04-21 19:49:04 +0000
commit571a2906063739067e40a02aadd8c265082359de (patch)
tree5ac57f777ec38f6a5f328da4e3df6ad6cc010aff /src/ui/GpgFrontendApplication.cpp
parentfix: could not determine the path to the executable based on the desktop file (diff)
parentfeat: adapt linux appimage of modules loading (diff)
downloadGpgFrontend-571a2906063739067e40a02aadd8c265082359de.tar.gz
GpgFrontend-571a2906063739067e40a02aadd8c265082359de.zip
Merge branch 'dev/2.1.2/module' into develop
Diffstat (limited to '')
-rw-r--r--src/ui/GpgFrontendApplication.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp
index c832ffe0..b3c12de6 100644
--- a/src/ui/GpgFrontendApplication.cpp
+++ b/src/ui/GpgFrontendApplication.cpp
@@ -28,9 +28,7 @@
#include "ui/GpgFrontendApplication.h"
-#include <QTextCodec>
-
-#include "GpgFrontendBuildInfo.h"
+#include "core/utils/BuildInfoUtils.h"
namespace GpgFrontend::UI {
@@ -42,17 +40,16 @@ GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[])
#endif
// set the extra information of the build
- GpgFrontendApplication::setApplicationVersion(BUILD_VERSION);
- GpgFrontendApplication::setApplicationName(PROJECT_NAME);
- GpgFrontendApplication::setApplicationDisplayName(PROJECT_NAME);
- GpgFrontendApplication::setOrganizationName(PROJECT_NAME);
+ GpgFrontendApplication::setApplicationVersion(GetProjectBuildVersion());
+ GpgFrontendApplication::setApplicationName(QString::fromUtf8((PROJECT_NAME)));
+ GpgFrontendApplication::setApplicationDisplayName(
+ QString::fromUtf8((PROJECT_NAME)));
+ GpgFrontendApplication::setOrganizationName(
+ QString::fromUtf8((PROJECT_NAME)));
GpgFrontendApplication::setQuitOnLastWindowClosed(true);
// don't show icons in menus
GpgFrontendApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
-
- // unicode in source
- QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
}
bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {