summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/texteditoroptionspage.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-04-20 15:45:11 +0200
committerEike Ziller <eike.ziller@qt.io>2018-04-23 11:12:26 +0000
commitd1ec4c120410b7351fc31df659a7f3be7ed4e93f (patch)
tree87f5c7c73ca95e2b2e14747fdc20659c79d5d59d /src/plugins/texteditor/texteditoroptionspage.cpp
parent4b9945c32981105bfae3ba59f9565757f0dc7417 (diff)
downloadqt-creator-d1ec4c120410b7351fc31df659a7f3be7ed4e93f.tar.gz
Clean up options page category display name and icon set up
In cases where plugins extend an existing settings category of a plugin that they depend on anyhow, they do not need to specify the translated display name and icon for that category. Some options pages were already not setting the icon, but still the translated name, which makes even less sense. Clean up this mess, only setting display name and icon if that is necessary. Change-Id: I8bc9d0c51b11d48f1d847337838704d663e70b45 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/texteditor/texteditoroptionspage.cpp')
-rw-r--r--src/plugins/texteditor/texteditoroptionspage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/texteditoroptionspage.cpp b/src/plugins/texteditor/texteditoroptionspage.cpp
index 2e1d9b3321..a028593e9a 100644
--- a/src/plugins/texteditor/texteditoroptionspage.cpp
+++ b/src/plugins/texteditor/texteditoroptionspage.cpp
@@ -35,6 +35,6 @@ TextEditorOptionsPage::TextEditorOptionsPage(QObject *parent) :
Core::IOptionsPage(parent)
{
setCategory(Constants::TEXT_EDITOR_SETTINGS_CATEGORY);
- setDisplayCategory(QCoreApplication::translate("TextEditor", Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY));
- setCategoryIcon(Utils::Icon(Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON));
+ setDisplayCategory(QCoreApplication::translate("TextEditor", "Text Editor"));
+ setCategoryIcon(Utils::Icon(":/core/images/category_texteditor.png"));
}