forked from qt-creator/qt-creator
Make method naming more consistent.
* Use id() for methods returning a string used to represent
some type of object.
* Use displayName() for strings that are meant to be user
visible.
* Quieten some warnings while touching the files anyway.
* Move Factories to their products in the plugins where that
was not done before.
Reviewed-by: dt
This commit is contained in:
@@ -108,7 +108,7 @@ QString CppSettingsPage::id() const
|
||||
return QLatin1String(Designer::Constants::SETTINGS_CPP_SETTINGS_ID);
|
||||
}
|
||||
|
||||
QString CppSettingsPage::trName() const
|
||||
QString CppSettingsPage::displayName() const
|
||||
{
|
||||
return QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_CPP_SETTINGS_NAME);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ QString CppSettingsPage::category() const
|
||||
return QLatin1String(Designer::Constants::SETTINGS_CATEGORY);
|
||||
}
|
||||
|
||||
QString CppSettingsPage::trCategory() const
|
||||
QString CppSettingsPage::displayCategory() const
|
||||
{
|
||||
return QCoreApplication::translate("Designer", Designer::Constants::SETTINGS_TR_CATEGORY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user