ToDo: Convert to Tr::tr

Change-Id: I2bd081fd484f851234c7e54114a15488271e0df1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2022-07-12 12:52:55 +02:00
parent 3651c385b7
commit ab90298fde
19 changed files with 101 additions and 306 deletions

View File

@@ -26,6 +26,7 @@
#include "todoprojectsettingswidget.h"
#include "constants.h"
#include "todotr.h"
#include <projectexplorer/project.h>
@@ -39,7 +40,7 @@ namespace Internal {
static QString excludePlaceholder()
{
return Todo::Internal::TodoProjectSettingsWidget::tr("<Enter regular expression to exclude>");
return Tr::tr("<Enter regular expression to exclude>");
}
TodoProjectSettingsWidget::TodoProjectSettingsWidget(ProjectExplorer::Project *project)
@@ -47,17 +48,17 @@ TodoProjectSettingsWidget::TodoProjectSettingsWidget(ProjectExplorer::Project *p
{
m_excludedPatternsList = new QListWidget;
m_excludedPatternsList->setSortingEnabled(true);
m_excludedPatternsList->setToolTip(tr("Regular expressions for file paths to be excluded from scanning."));
m_excludedPatternsList->setToolTip(Tr::tr("Regular expressions for file paths to be excluded from scanning."));
m_removeExcludedPatternButton = new QPushButton(tr("Remove"));
m_removeExcludedPatternButton = new QPushButton(Tr::tr("Remove"));
auto addExcludedPatternButton = new QPushButton(tr("Add"));
auto addExcludedPatternButton = new QPushButton(Tr::tr("Add"));
using namespace Utils::Layouting;
Column {
Group {
Title(tr("Excluded Files")),
Title(Tr::tr("Excluded Files")),
Row {
m_excludedPatternsList,
Column {