aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2023-02-09 15:26:50 +0100
committerAlessandro Portale <[email protected]>2023-02-10 16:27:08 +0000
commit6138414813c58162d948de203db4c70075d000b4 (patch)
tree94f8b46f77d9d701e74fc0676f7f03936f27ed3d /tests/manual
parentba34f00e1e67721cda2af8a2a2a436940b1e1e4a (diff)
Tests: Remove a couple of tr() calls
No need to have them translatable and to risk lupdating them. Change-Id: I41c84240ed30ffb6e19ab133422f4e5fb3a97aa4 Reviewed-by: hjk <[email protected]> Reviewed-by: <[email protected]>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/dockwidgets/mainwindow.cpp14
-rw-r--r--tests/manual/pluginview/plugindialog.cpp10
2 files changed, 12 insertions, 12 deletions
diff --git a/tests/manual/dockwidgets/mainwindow.cpp b/tests/manual/dockwidgets/mainwindow.cpp
index 983a6e6d217..8803ece39d7 100644
--- a/tests/manual/dockwidgets/mainwindow.cpp
+++ b/tests/manual/dockwidgets/mainwindow.cpp
@@ -29,7 +29,7 @@ protected:
QStyleOptionTabV2 opt;
opt.initFrom(this);
opt.shape = QTabBar::RoundedWest;
- opt.text = tr("Hello");
+ opt.text = "Hello";
QStylePainter p(this);
p.drawControl(QStyle::CE_TabBarTab, opt);
@@ -49,7 +49,7 @@ private:
MainWindow::MainWindow()
{
- centralWidget = new QLabel(tr("Central Widget"));
+ centralWidget = new QLabel("Central Widget");
setCentralWidget(centralWidget);
QToolBar *tb = this->addToolBar("Normal Toolbar");
@@ -62,7 +62,7 @@ MainWindow::MainWindow()
createDockWindows();
- setWindowTitle(tr("Dock Widgets"));
+ setWindowTitle("Dock Widgets");
}
void MainWindow::createDockWindows()
@@ -71,10 +71,10 @@ void MainWindow::createDockWindows()
for (int i=0; i<5; ++i) {
QArrowManagedDockWidget *dock = new QArrowManagedDockWidget(manager);
- QLabel *label = new QLabel(tr("Widget %1").arg(i), dock);
- label->setWindowTitle(tr("Widget %1").arg(i));
- label->setObjectName(tr("widget_%1").arg(i));
- dock->setObjectName(tr("dock_%1").arg(i));
+ QLabel *label = new QLabel(QString("Widget %1").arg(i), dock);
+ label->setWindowTitle(QString("Widget %1").arg(i));
+ label->setObjectName(QString("widget_%1").arg(i));
+ dock->setObjectName(QString("dock_%1").arg(i));
dock->setWidget(label);
addDockWidget(Qt::RightDockWidgetArea, dock);
}
diff --git a/tests/manual/pluginview/plugindialog.cpp b/tests/manual/pluginview/plugindialog.cpp
index 460411dc7eb..d1ed1d906d7 100644
--- a/tests/manual/pluginview/plugindialog.cpp
+++ b/tests/manual/pluginview/plugindialog.cpp
@@ -30,15 +30,15 @@ PluginDialog::PluginDialog()
vl->addLayout(hl);
hl->setContentsMargins(0, 0, 0, 0);
hl->setSpacing(6);
- m_detailsButton = new QPushButton(tr("Details"), this);
- m_errorDetailsButton = new QPushButton(tr("Error Details"), this);
+ m_detailsButton = new QPushButton("Details", this);
+ m_errorDetailsButton = new QPushButton("Error Details", this);
m_detailsButton->setEnabled(false);
m_errorDetailsButton->setEnabled(false);
hl->addWidget(m_detailsButton);
hl->addWidget(m_errorDetailsButton);
hl->addStretch(5);
resize(650, 300);
- setWindowTitle(tr("Installed Plugins"));
+ setWindowTitle("Installed Plugins");
connect(m_view, &ExtensionSystem::PluginView::currentPluginChanged,
this, &PluginDialog::updateButtons);
@@ -69,7 +69,7 @@ void PluginDialog::openDetails(ExtensionSystem::PluginSpec *spec)
return;
}
QDialog dialog(this);
- dialog.setWindowTitle(tr("Plugin Details of %1").arg(spec->name()));
+ dialog.setWindowTitle(QString("Plugin Details of %1").arg(spec->name()));
QVBoxLayout *layout = new QVBoxLayout;
dialog.setLayout(layout);
ExtensionSystem::PluginDetailsView *details = new ExtensionSystem::PluginDetailsView(&dialog);
@@ -89,7 +89,7 @@ void PluginDialog::openErrorDetails()
if (!spec)
return;
QDialog dialog(this);
- dialog.setWindowTitle(tr("Plugin Errors of %1").arg(spec->name()));
+ dialog.setWindowTitle(QString("Plugin Errors of %1").arg(spec->name()));
QVBoxLayout *layout = new QVBoxLayout;
dialog.setLayout(layout);
ExtensionSystem::PluginErrorView *errors = new ExtensionSystem::PluginErrorView(&dialog);