forked from qt-creator/qt-creator
tr()-Fixes in CLANG code model.
Do not use QObject::tr(), use native file paths, use complete contexts. Change-Id: Icc4990b4c2ca5b9ae6f6b639db9e1a45a93e0a65 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -48,8 +48,7 @@ QString ClangProjectSettingsPanelFactory::id() const
|
||||
|
||||
QString ClangProjectSettingsPanelFactory::displayName() const
|
||||
{
|
||||
return QCoreApplication::translate("ClangProjectSettingsPropertiesPage",
|
||||
"Clang Settings");
|
||||
return ClangProjectSettingsWidget::tr("Clang Settings");
|
||||
}
|
||||
|
||||
int ClangProjectSettingsPanelFactory::priority() const
|
||||
@@ -67,9 +66,7 @@ bool ClangProjectSettingsPanelFactory::supports(Project *project)
|
||||
PropertiesPanel *ClangProjectSettingsPanelFactory::createPanel(Project *project)
|
||||
{
|
||||
PropertiesPanel *panel = new PropertiesPanel;
|
||||
panel->setDisplayName(QCoreApplication::translate(
|
||||
"ClangProjectSettingsPropertiesPage",
|
||||
"Clang Settings"));
|
||||
panel->setDisplayName(ClangProjectSettingsWidget::tr("Clang Settings"));
|
||||
panel->setWidget(new ClangProjectSettingsWidget(project));
|
||||
return panel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user