forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -15,7 +15,6 @@ Project {
|
||||
Depends { name: "CppEditor" }
|
||||
Depends { name: "ProjectExplorer" }
|
||||
Depends { name: "QtSupport" }
|
||||
Depends { name: "app_version_header" }
|
||||
|
||||
cpp.includePaths: "."
|
||||
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
#include "mesonpluginconstants.h"
|
||||
#include "mesonprojectmanagertr.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QGuiApplication>
|
||||
#include <QVariantMap>
|
||||
|
||||
#include <iterator>
|
||||
@@ -27,7 +26,7 @@ static QString entryName(int index)
|
||||
ToolsSettingsAccessor::ToolsSettingsAccessor()
|
||||
{
|
||||
setDocType("QtCreatorMesonTools");
|
||||
setApplicationDisplayName(Core::Constants::IDE_DISPLAY_NAME);
|
||||
setApplicationDisplayName(QGuiApplication::applicationDisplayName());
|
||||
setBaseFilePath(Core::ICore::userResourcePath(Constants::ToolsSettings::FILENAME));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user