forked from qt-creator/qt-creator
Copilot: Don't use app_version
Change-Id: I10c1bfaa6befe49ba7261afe14c457a5f33c887f Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
add_qtc_plugin(Copilot
|
||||
PLUGIN_DEPENDS Core LanguageClient app_version
|
||||
PLUGIN_DEPENDS Core LanguageClient
|
||||
SOURCES
|
||||
authwidget.cpp authwidget.h
|
||||
copilot.qrc
|
||||
|
||||
@@ -7,7 +7,6 @@ QtcPlugin {
|
||||
Depends { name: "LanguageClient" }
|
||||
Depends { name: "ProjectExplorer" }
|
||||
Depends { name: "TextEditor" }
|
||||
Depends { name: "app_version_header" }
|
||||
Depends { name: "Qt"; submodules: ["widgets", "xml", "network"] }
|
||||
|
||||
files: [
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
#include "copilotsuggestion.h"
|
||||
#include "copilottr.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
|
||||
#include <languageclient/languageclientinterface.h>
|
||||
#include <languageclient/languageclientmanager.h>
|
||||
#include <languageclient/languageclientsettings.h>
|
||||
@@ -26,6 +24,7 @@
|
||||
#include <utils/filepath.h>
|
||||
#include <utils/passworddialog.h>
|
||||
|
||||
#include <QGuiApplication>
|
||||
#include <QInputDialog>
|
||||
#include <QLoggingCategory>
|
||||
#include <QTimer>
|
||||
@@ -252,8 +251,9 @@ void CopilotClient::requestSetEditorInfo()
|
||||
if (settings().saveProxyPassword())
|
||||
currentProxyPassword = settings().proxyPassword();
|
||||
|
||||
const EditorInfo editorInfo{Core::Constants::IDE_VERSION_DISPLAY, "Qt Creator"};
|
||||
const EditorPluginInfo editorPluginInfo{Core::Constants::IDE_VERSION_DISPLAY,
|
||||
const EditorInfo editorInfo{QCoreApplication::applicationVersion(),
|
||||
QGuiApplication::applicationDisplayName()};
|
||||
const EditorPluginInfo editorPluginInfo{QCoreApplication::applicationVersion(),
|
||||
"Qt Creator Copilot plugin"};
|
||||
|
||||
SetEditorInfoParams params(editorInfo, editorPluginInfo);
|
||||
|
||||
Reference in New Issue
Block a user