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:
@@ -20,8 +20,6 @@
|
||||
#include "progressmanager.h"
|
||||
#include "semantichighlightsupport.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
|
||||
#include <coreplugin/editormanager/documentmodel.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/idocument.h>
|
||||
@@ -54,10 +52,12 @@
|
||||
#include <texteditor/texteditoractionhandler.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
|
||||
#include <utils/appinfo.h>
|
||||
#include <utils/mimeutils.h>
|
||||
#include <utils/process.h>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QGuiApplication>
|
||||
#include <QJsonDocument>
|
||||
#include <QLoggingCategory>
|
||||
#include <QMessageBox>
|
||||
@@ -148,8 +148,8 @@ public:
|
||||
{
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
m_clientInfo.setName(Core::Constants::IDE_DISPLAY_NAME);
|
||||
m_clientInfo.setVersion(Core::Constants::IDE_VERSION_DISPLAY);
|
||||
m_clientInfo.setName(QGuiApplication::applicationDisplayName());
|
||||
m_clientInfo.setVersion(Utils::appInfo().displayVersion);
|
||||
|
||||
m_clientProviders.completionAssistProvider = new LanguageClientCompletionAssistProvider(q);
|
||||
m_clientProviders.functionHintProvider = new FunctionHintAssistProvider(q);
|
||||
|
||||
Reference in New Issue
Block a user