File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 43
43
44
44
#include " ConfigurationManager.hpp"
45
45
#include " QodeAssistClient.hpp"
46
+ #include " Version.hpp"
46
47
#include " chat/ChatOutputPane.h"
47
48
#include " chat/NavigationPanel.hpp"
48
49
#include " settings/GeneralSettings.hpp"
49
50
#include " settings/ProjectSettingsPanel.hpp"
51
+ #include " settings/SettingsConstants.hpp"
50
52
51
53
#include " UpdateStatusWidget.hpp"
52
54
#include " providers/Providers.hpp"
@@ -77,6 +79,13 @@ class QodeAssistPlugin final : public ExtensionSystem::IPlugin
77
79
78
80
void initialize () final
79
81
{
82
+ #if QODEASSIST_QT_CREATOR_VERSION >= QT_VERSION_CHECK(15, 0, 83)
83
+ Core::IOptionsPage::registerCategory (
84
+ Constants::QODE_ASSIST_GENERAL_OPTIONS_CATEGORY,
85
+ Constants::QODE_ASSIST_GENERAL_OPTIONS_DISPLAY_CATEGORY,
86
+ " :/resources/images/qoderassist-icon.png" );
87
+ #endif
88
+
80
89
Providers::registerProviders ();
81
90
Templates::registerTemplates ();
82
91
Original file line number Diff line number Diff line change 39
39
#include " SettingsTr.hpp"
40
40
#include " SettingsUtils.hpp"
41
41
#include " UpdateDialog.hpp"
42
+ #include " ../Version.hpp"
42
43
43
44
namespace QodeAssist ::Settings {
44
45
@@ -444,8 +445,10 @@ class GeneralSettingsPage : public Core::IOptionsPage
444
445
setId (Constants::QODE_ASSIST_GENERAL_SETTINGS_PAGE_ID);
445
446
setDisplayName (TrConstants::GENERAL);
446
447
setCategory (Constants::QODE_ASSIST_GENERAL_OPTIONS_CATEGORY);
448
+ #if QODEASSIST_QT_CREATOR_VERSION < QT_VERSION_CHECK(15, 0, 83)
447
449
setDisplayCategory (Constants::QODE_ASSIST_GENERAL_OPTIONS_DISPLAY_CATEGORY);
448
450
setCategoryIconPath (" :/resources/images/qoderassist-icon.png" );
451
+ #endif
449
452
setSettingsProvider ([] { return &generalSettings (); });
450
453
}
451
454
};
You can’t perform that action at this time.
0 commit comments