aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/projectexplorerconstants.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-06-21 15:12:46 +0200
committerEike Ziller <eike.ziller@qt.io>2023-06-26 06:57:46 +0000
commitdff9e1463bfebe803af0c696222b6eeb04857c26 (patch)
tree71a130bb73c65d88c0e87fdd06d0f06495c6670c /src/plugins/projectexplorer/projectexplorerconstants.cpp
parent27302694ab794d8437b6feac4095ad34fa43ed24 (diff)
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 <alessandro.portale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorerconstants.cpp')
-rw-r--r--src/plugins/projectexplorer/projectexplorerconstants.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/projectexplorerconstants.cpp b/src/plugins/projectexplorer/projectexplorerconstants.cpp
index 0481d82a02..0b1772c9cd 100644
--- a/src/plugins/projectexplorer/projectexplorerconstants.cpp
+++ b/src/plugins/projectexplorer/projectexplorerconstants.cpp
@@ -5,7 +5,7 @@
#include "projectexplorertr.h"
-#include <coreplugin/icore.h>
+#include <QGuiApplication>
namespace ProjectExplorer {
namespace Constants {
@@ -18,7 +18,7 @@ QString msgAutoDetected()
QString msgAutoDetectedToolTip()
{
return Tr::tr("Automatically managed by %1 or the installer.")
- .arg(Core::ICore::ideDisplayName());
+ .arg(QGuiApplication::applicationDisplayName());
}
QString msgManual()