diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f78a1b..f1535fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,7 @@ add_qtc_plugin(QodeAssist templates/Alpaca.hpp templates/Llama2.hpp templates/CodeLlamaQMLFim.hpp + templates/GoogleAI.hpp providers/Providers.hpp providers/OllamaProvider.hpp providers/OllamaProvider.cpp providers/ClaudeProvider.hpp providers/ClaudeProvider.cpp @@ -66,6 +67,7 @@ add_qtc_plugin(QodeAssist providers/LMStudioProvider.hpp providers/LMStudioProvider.cpp providers/OpenAICompatProvider.hpp providers/OpenAICompatProvider.cpp providers/OpenRouterAIProvider.hpp providers/OpenRouterAIProvider.cpp + providers/GoogleAIProvider.hpp providers/GoogleAIProvider.cpp QodeAssist.qrc LSPCompletion.hpp LLMSuggestion.hpp LLMSuggestion.cpp @@ -76,9 +78,3 @@ add_qtc_plugin(QodeAssist CodeHandler.hpp CodeHandler.cpp UpdateStatusWidget.hpp UpdateStatusWidget.cpp ) - -target_sources(QodeAssist - PRIVATE - providers/GoogleAIProvider.hpp providers/GoogleAIProvider.cpp - templates/GoogleAI.hpp -) diff --git a/settings/GeneralSettings.cpp b/settings/GeneralSettings.cpp index ed5169d..eb5b687 100644 --- a/settings/GeneralSettings.cpp +++ b/settings/GeneralSettings.cpp @@ -97,6 +97,7 @@ GeneralSettings::GeneralSettings() ccTemplateDescription.setDisplayStyle(Utils::StringAspect::TextEditDisplay); ccTemplateDescription.setReadOnly(true); ccTemplateDescription.setDefaultValue(""); + ccTemplateDescription.setLabelText(TrConstants::CURRENT_TEMPLATE_DESCRIPTION); // preset1 specifyPreset1.setSettingsKey(Constants::CC_SPECIFY_PRESET1); @@ -156,6 +157,7 @@ GeneralSettings::GeneralSettings() caTemplateDescription.setDisplayStyle(Utils::StringAspect::TextEditDisplay); caTemplateDescription.setReadOnly(true); caTemplateDescription.setDefaultValue(""); + caTemplateDescription.setLabelText(TrConstants::CURRENT_TEMPLATE_DESCRIPTION); readSettings(); diff --git a/settings/SettingsTr.hpp b/settings/SettingsTr.hpp index b38f303..dad4250 100644 --- a/settings/SettingsTr.hpp +++ b/settings/SettingsTr.hpp @@ -49,6 +49,8 @@ inline const char *RESET_SETTINGS = QT_TRANSLATE_NOOP("QtC::QodeAssist", "Reset inline const char *CONFIRMATION = QT_TRANSLATE_NOOP("QtC::QodeAssist", "Are you sure you want to reset all settings to default values?"); +inline const char *CURRENT_TEMPLATE_DESCRIPTION + = QT_TRANSLATE_NOOP("QtC::QodeAssist", "Current template description:"); inline const char CONNECTION_ERROR[] = QT_TRANSLATE_NOOP("QtC::QodeAssist", "Connection Error"); inline const char NO_MODELS_FOUND[]