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:
		| @@ -164,8 +164,8 @@ CppCodeModelSettingsPage::CppCodeModelSettingsPage(QSharedPointer<CppCodeModelSe | ||||
|     setId(Constants::CPP_CODE_MODEL_SETTINGS_ID); | ||||
|     setDisplayName(QCoreApplication::translate("CppTools",Constants::CPP_CODE_MODEL_SETTINGS_NAME)); | ||||
|     setCategory(Constants::CPP_SETTINGS_CATEGORY); | ||||
|     setDisplayCategory(QCoreApplication::translate("CppTools",Constants::CPP_SETTINGS_TR_CATEGORY)); | ||||
|     setCategoryIcon(Utils::Icon(Constants::SETTINGS_CATEGORY_CPP_ICON)); | ||||
|     setDisplayCategory(QCoreApplication::translate("CppTools", "C++")); | ||||
|     setCategoryIcon(Utils::Icon(":/cpptools/images/category_cpp.png")); | ||||
| } | ||||
|  | ||||
| QWidget *CppCodeModelSettingsPage::widget() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user