From d58ff90458f36fc78e7baa531e612136b3b2dab5 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Thu, 27 Mar 2025 00:34:10 +0100 Subject: [PATCH] fix: Fixed typo in the use of the project name --- LLMClientInterface.cpp | 2 +- QodeAssistClient.cpp | 4 ++-- QodeAssistClient.hpp | 2 +- README.md | 4 ++-- logger/Logger.cpp | 4 ++-- qodeassist.cpp | 4 ++-- settings/ProjectSettings.cpp | 4 ++-- settings/ProjectSettingsPanel.cpp | 2 +- settings/SettingsConstants.hpp | 2 +- settings/SettingsTr.hpp | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/LLMClientInterface.cpp b/LLMClientInterface.cpp index 690d57f..c3190a4 100644 --- a/LLMClientInterface.cpp +++ b/LLMClientInterface.cpp @@ -61,7 +61,7 @@ LLMClientInterface::LLMClientInterface( Utils::FilePath LLMClientInterface::serverDeviceTemplate() const { - return "Qode Assist"; + return "QodeAssist"; } void LLMClientInterface::startImpl() diff --git a/QodeAssistClient.cpp b/QodeAssistClient.cpp index 4f746f8..c3446c0 100644 --- a/QodeAssistClient.cpp +++ b/QodeAssistClient.cpp @@ -2,7 +2,7 @@ * Copyright (C) 2023 The Qt Company Ltd. * Copyright (C) 2024 Petr Mironychev * - * This file is part of Qode Assist. + * This file is part of QodeAssist. * * The Qt Company portions: * SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 @@ -48,7 +48,7 @@ QodeAssistClient::QodeAssistClient(LLMClientInterface *clientInterface) : LanguageClient::Client(clientInterface) , m_recentCharCount(0) { - setName("Qode Assist"); + setName("QodeAssist"); LanguageClient::LanguageFilter filter; filter.mimeTypes = QStringList() << "*"; setSupportedLanguage(filter); diff --git a/QodeAssistClient.hpp b/QodeAssistClient.hpp index 4b4f790..0e8260a 100644 --- a/QodeAssistClient.hpp +++ b/QodeAssistClient.hpp @@ -2,7 +2,7 @@ * Copyright (C) 2023 The Qt Company Ltd. * Copyright (C) 2024 Petr Mironychev * - * This file is part of Qode Assist. + * This file is part of QodeAssist. * * The Qt Company portions: * SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 diff --git a/README.md b/README.md index 040e850..2105f77 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ ollama run qwen2.5-coder:32b ``` 1. Open Qt Creator settings (Edit > Preferences on Linux/Windows, Qt Creator > Preferences on macOS) -2. Navigate to the "Qode Assist" tab +2. Navigate to the "QodeAssist" tab 3. On the "General" page, verify: - Ollama is selected as your LLM provider - The URL is set to http://localhost:11434 @@ -281,7 +281,7 @@ If you need compatiblity with another os, you have to build manualy. our experim If you're still experiencing issues with QodeAssist, you can try resetting the settings to their default values: 1. Open Qt Creator settings -2. Navigate to the "Qode Assist" tab +2. Navigate to the "QodeAssist" tab 3. Pick settings page for reset 4. Click on the "Reset Page to Defaults" button - The API key will not reset diff --git a/logger/Logger.cpp b/logger/Logger.cpp index acd0915..d037b1e 100644 --- a/logger/Logger.cpp +++ b/logger/Logger.cpp @@ -28,7 +28,7 @@ void Logger::log(const QString &message, bool silent) if (!m_loggingEnabled) return; - const QString prefixedMessage = QLatin1String("[Qode Assist] ") + message; + const QString prefixedMessage = QLatin1String("[QodeAssist] ") + message; if (silent) { Core::MessageManager::writeSilently(prefixedMessage); } else { @@ -43,7 +43,7 @@ void Logger::logMessages(const QStringList &messages, bool silent) QStringList prefixedMessages; for (const QString &message : messages) { - prefixedMessages << (QLatin1String("[Qode Assist] ") + message); + prefixedMessages << (QLatin1String("[QodeAssist] ") + message); } if (silent) { diff --git a/qodeassist.cpp b/qodeassist.cpp index 088d769..2415071 100644 --- a/qodeassist.cpp +++ b/qodeassist.cpp @@ -100,7 +100,7 @@ public: ActionBuilder requestAction(this, Constants::QODE_ASSIST_REQUEST_SUGGESTION); requestAction.setToolTip( - Tr::tr("Generate Qode Assist suggestion at the current cursor position.")); + Tr::tr("Generate QodeAssist suggestion at the current cursor position.")); requestAction.setText(Tr::tr("Request QodeAssist Suggestion")); requestAction.setIcon(QCODEASSIST_ICON.icon()); const QKeySequence defaultShortcut = QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_Q); @@ -110,7 +110,7 @@ public: if (m_qodeAssistClient && m_qodeAssistClient->reachable()) { m_qodeAssistClient->requestCompletions(editor); } else - qWarning() << "The Qode Assist is not ready. Please check your connection and " + qWarning() << "The QodeAssist is not ready. Please check your connection and " "settings."; } }); diff --git a/settings/ProjectSettings.cpp b/settings/ProjectSettings.cpp index b910705..ff4fef1 100644 --- a/settings/ProjectSettings.cpp +++ b/settings/ProjectSettings.cpp @@ -35,8 +35,8 @@ ProjectSettings::ProjectSettings(ProjectExplorer::Project *project) useGlobalSettings.setDefaultValue(true); enableQodeAssist.setSettingsKey(Constants::QODE_ASSIST_ENABLE_IN_PROJECT); - enableQodeAssist.setDisplayName(Tr::tr("Enable Qode Assist")); - enableQodeAssist.setLabelText(Tr::tr("Enable Qode Assist")); + enableQodeAssist.setDisplayName(Tr::tr("Enable QodeAssist")); + enableQodeAssist.setLabelText(Tr::tr("Enable QodeAssist")); enableQodeAssist.setDefaultValue(false); chatHistoryPath.setSettingsKey(Constants::QODE_ASSIST_CHAT_HISTORY_PATH); diff --git a/settings/ProjectSettingsPanel.cpp b/settings/ProjectSettingsPanel.cpp index a32df3e..cc0fc69 100644 --- a/settings/ProjectSettingsPanel.cpp +++ b/settings/ProjectSettingsPanel.cpp @@ -80,7 +80,7 @@ public: ProjectPanelFactory() { setPriority(1000); - setDisplayName(Tr::tr("Qode Assist")); + setDisplayName(Tr::tr("QodeAssist")); setCreateWidgetFunction(&createProjectPanel); } }; diff --git a/settings/SettingsConstants.hpp b/settings/SettingsConstants.hpp index f766bb6..4724b0c 100644 --- a/settings/SettingsConstants.hpp +++ b/settings/SettingsConstants.hpp @@ -82,7 +82,7 @@ const char QODE_ASSIST_CHAT_ASSISTANT_SETTINGS_PAGE_ID[] const char QODE_ASSIST_CUSTOM_PROMPT_SETTINGS_PAGE_ID[] = "QodeAssist.4CustomPromptSettingsPageId"; const char QODE_ASSIST_GENERAL_OPTIONS_CATEGORY[] = "QodeAssist.Category"; -const char QODE_ASSIST_GENERAL_OPTIONS_DISPLAY_CATEGORY[] = "Qode Assist"; +const char QODE_ASSIST_GENERAL_OPTIONS_DISPLAY_CATEGORY[] = "QodeAssist"; // Provider Settings Page ID const char QODE_ASSIST_PROVIDER_SETTINGS_PAGE_ID[] = "QodeAssist.5ProviderSettingsPageId"; diff --git a/settings/SettingsTr.hpp b/settings/SettingsTr.hpp index bc9deb8..1f0f0b4 100644 --- a/settings/SettingsTr.hpp +++ b/settings/SettingsTr.hpp @@ -24,7 +24,7 @@ namespace QodeAssist::Settings { namespace TrConstants { -inline const char *ENABLE_QODE_ASSIST = QT_TRANSLATE_NOOP("QtC::QodeAssist", "Enable Qode Assist"); +inline const char *ENABLE_QODE_ASSIST = QT_TRANSLATE_NOOP("QtC::QodeAssist", "Enable QodeAssist"); inline const char *GENERAL = QT_TRANSLATE_NOOP("QtC::QodeAssist", "General"); inline const char *RESET_TO_DEFAULTS = QT_TRANSLATE_NOOP("QtC::QodeAssist", "Reset Page to Defaults");