Commit b812144e authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

testview: add more UI context marker for strings

GIT_SILENT
parent 4f410c9a
......@@ -75,7 +75,7 @@ TestView::TestView(TestViewPlugin* plugin, QWidget* parent)
#endif
{
setWindowIcon(QIcon::fromTheme(QStringLiteral("preflight-verifier"), windowIcon()));
setWindowTitle(i18n("Unit Tests"));
setWindowTitle(i18nc("@title:window", "Unit Tests"));
auto* layout = new QVBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
......@@ -99,19 +99,19 @@ TestView::TestView(TestViewPlugin* plugin, QWidget* parent)
m_filter->setSourceModel(m_model);
m_tree->setModel(m_filter);
auto* showSource = new QAction( QIcon::fromTheme(QStringLiteral("code-context")), i18n("Show Source"), this );
auto* showSource = new QAction( QIcon::fromTheme(QStringLiteral("code-context")), i18nc("@action:inmenu", "Show Source"), this );
connect (showSource, &QAction::triggered, this, &TestView::showSource);
m_contextMenuActions << showSource;
addAction(plugin->actionCollection()->action(QStringLiteral("run_all_tests")));
addAction(plugin->actionCollection()->action(QStringLiteral("stop_running_tests")));
auto* runSelected = new QAction( QIcon::fromTheme(QStringLiteral("system-run")), i18n("Run Selected Tests"), this );
auto* runSelected = new QAction( QIcon::fromTheme(QStringLiteral("system-run")), i18nc("@action", "Run Selected Tests"), this );
connect (runSelected, &QAction::triggered, this, &TestView::runSelectedTests);
addAction(runSelected);
auto* edit = new QLineEdit(parent);
edit->setPlaceholderText(i18n("Filter..."));
edit->setPlaceholderText(i18nc("@info:placeholder", "Filter..."));
edit->setClearButtonEnabled(true);
auto* widgetAction = new QWidgetAction(this);
widgetAction->setDefaultWidget(edit);
......
......@@ -69,18 +69,18 @@ TestViewPlugin::TestViewPlugin(QObject* parent, const QVariantList& args)
{
Q_UNUSED(args)
auto* runAll = new QAction( QIcon::fromTheme(QStringLiteral("system-run")), i18n("Run All Tests"), this );
auto* runAll = new QAction( QIcon::fromTheme(QStringLiteral("system-run")), i18nc("@action", "Run All Tests"), this );
connect(runAll, &QAction::triggered, this, &TestViewPlugin::runAllTests);
actionCollection()->addAction(QStringLiteral("run_all_tests"), runAll);
auto* stopTest = new QAction( QIcon::fromTheme(QStringLiteral("process-stop")), i18n("Stop Running Tests"), this );
auto* stopTest = new QAction( QIcon::fromTheme(QStringLiteral("process-stop")), i18nc("@action", "Stop Running Tests"), this );
connect(stopTest, &QAction::triggered, this, &TestViewPlugin::stopRunningTests);
actionCollection()->addAction(QStringLiteral("stop_running_tests"), stopTest);
setXMLFile(QStringLiteral("kdevtestview.rc"));
m_viewFactory = new TestToolViewFactory(this);
core()->uiController()->addToolView(i18n("Unit Tests"), m_viewFactory);
core()->uiController()->addToolView(i18nc("@title:window", "Unit Tests"), m_viewFactory);
connect(core()->runController(),&IRunController::jobRegistered, this, &TestViewPlugin::jobStateChanged);
connect(core()->runController(),&IRunController::jobUnregistered, this, &TestViewPlugin::jobStateChanged);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment