forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -167,9 +167,6 @@ QmlJsEditingSettingsPage::QmlJsEditingSettingsPage() :
|
||||
setId("C.QmlJsEditing");
|
||||
setDisplayName(tr("QML/JS Editing"));
|
||||
setCategory(Constants::SETTINGS_CATEGORY_QML);
|
||||
setDisplayCategory(QCoreApplication::translate("QmlJSEditor",
|
||||
QmlJSEditor::Constants::SETTINGS_TR_CATEGORY_QML));
|
||||
setCategoryIcon(Utils::Icon(QmlJSTools::Constants::SETTINGS_CATEGORY_QML_ICON));
|
||||
}
|
||||
|
||||
QWidget *QmlJsEditingSettingsPage::widget()
|
||||
|
||||
@@ -40,7 +40,6 @@ const char C_QMLJSEDITOR_ID[] = "QMLProjectManager.QMLJSEditor";
|
||||
const char C_QMLJSEDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors", "QMLJS Editor");
|
||||
const char TASK_SEARCH[] = "QmlJSEditor.TaskSearch";
|
||||
const char SETTINGS_CATEGORY_QML[] = "J.QtQuick";
|
||||
const char SETTINGS_TR_CATEGORY_QML[] = QT_TRANSLATE_NOOP("QmlJSEditor", "Qt Quick");
|
||||
|
||||
const char FIND_USAGES[] = "QmlJSEditor.FindUsages";
|
||||
const char RENAME_USAGES[] = "QmlJSEditor.RenameUsages";
|
||||
|
||||
Reference in New Issue
Block a user