aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/behaviorsettingspage.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-01-15 15:00:57 +0100
committerhjk <hjk@qt.io>2020-01-16 12:09:26 +0000
commit07b04c20560abed63240095094a2b95114ec61ad (patch)
treef9e7dc0a8467ec177e49dfd6d40a6736bb782c18 /src/plugins/texteditor/behaviorsettingspage.cpp
parented7fb30e66a1d9e9501b1bc5fc4a0593566398dc (diff)
TextEditor: Dissolve TextEditorOptionsPage intermediate hierarchy level
It's effectively setting only three properties nowadays, not enough to justify a case of reuse-by-inheritance anymore. Change-Id: I947fbc51e76c8d908da662dd58dce91614c28e08 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/behaviorsettingspage.cpp')
-rw-r--r--src/plugins/texteditor/behaviorsettingspage.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/texteditor/behaviorsettingspage.cpp b/src/plugins/texteditor/behaviorsettingspage.cpp
index bbe420a5bf..5cc5fcacbc 100644
--- a/src/plugins/texteditor/behaviorsettingspage.cpp
+++ b/src/plugins/texteditor/behaviorsettingspage.cpp
@@ -88,9 +88,13 @@ void BehaviorSettingsPage::BehaviorSettingsPagePrivate::init()
BehaviorSettingsPage::BehaviorSettingsPage(const BehaviorSettingsPageParameters &p,
QObject *parent)
- : TextEditorOptionsPage(parent),
+ : Core::IOptionsPage(parent),
d(new BehaviorSettingsPagePrivate(p))
{
+ setCategory(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
+ setDisplayCategory(QCoreApplication::translate("TextEditor", "Text Editor"));
+ setCategoryIconPath(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON_PATH);
+
// global tab preferences for all other languages
d->m_codeStyle = new SimpleCodeStylePreferences(this);
d->m_codeStyle->setDisplayName(tr("Global", "Settings"));