From dff9e1463bfebe803af0c696222b6eeb04857c26 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 21 Jun 2023 15:12:46 +0200 Subject: Reduce usage of app_version header Most information is available via Q(Core|Gui)Application. Add an AppInfo structure for the things that are not. This avoids that the information ends up duplicated and hardcoded in the plugins, which is not needed or desired. Change-Id: I4d565e75c42a7b8facafa90c27096ea49359215d Reviewed-by: Alessandro Portale Reviewed-by: Qt CI Bot --- src/plugins/cppeditor/cppfilesettingspage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/plugins/cppeditor/cppfilesettingspage.cpp') diff --git a/src/plugins/cppeditor/cppfilesettingspage.cpp b/src/plugins/cppeditor/cppfilesettingspage.cpp index 21411577d3..6b9bad8c9c 100644 --- a/src/plugins/cppeditor/cppfilesettingspage.cpp +++ b/src/plugins/cppeditor/cppfilesettingspage.cpp @@ -6,7 +6,6 @@ #include "cppeditorplugin.h" #include "cppeditortr.h" -#include #include #include #include @@ -20,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -435,7 +435,8 @@ void CppFileSettingsWidget::slotEdit() if (path.isEmpty()) return; FileSaver saver(path, QIODevice::Text); - saver.write(Tr::tr(licenseTemplateTemplate).arg(Core::Constants::IDE_DISPLAY_NAME).toUtf8()); + saver.write( + Tr::tr(licenseTemplateTemplate).arg(QGuiApplication::applicationDisplayName()).toUtf8()); if (!saver.finalize(this)) return; setLicenseTemplatePath(path); -- cgit v1.2.3