fix: Make plugin registration be compatible with Qt Creator 16 (#80)

This introduces changes needed after the following commit in Qt Creator:

ba5e4b7eff

Core: Provide settings categories centrally
This commit is contained in:
Povilas Kanapickas
2025-03-04 12:29:30 +02:00
committed by GitHub
parent d8a01504a3
commit ca0fb5efbb
2 changed files with 12 additions and 0 deletions

View File

@ -43,10 +43,12 @@
#include "ConfigurationManager.hpp"
#include "QodeAssistClient.hpp"
#include "Version.hpp"
#include "chat/ChatOutputPane.h"
#include "chat/NavigationPanel.hpp"
#include "settings/GeneralSettings.hpp"
#include "settings/ProjectSettingsPanel.hpp"
#include "settings/SettingsConstants.hpp"
#include "UpdateStatusWidget.hpp"
#include "providers/Providers.hpp"
@ -77,6 +79,13 @@ public:
void initialize() final
{
#if QODEASSIST_QT_CREATOR_VERSION >= QT_VERSION_CHECK(15, 0, 83)
Core::IOptionsPage::registerCategory(
Constants::QODE_ASSIST_GENERAL_OPTIONS_CATEGORY,
Constants::QODE_ASSIST_GENERAL_OPTIONS_DISPLAY_CATEGORY,
":/resources/images/qoderassist-icon.png");
#endif
Providers::registerProviders();
Templates::registerTemplates();