From 25b438b6f3ca585bb5ab317ef82c0987547094d3 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 11 Mar 2020 11:04:28 +0100 Subject: [PATCH] Project Explorer: Fix UI text according to the guidelines https://doc.qt.io/qtcreator-extending/qtcreator-ui-text.html Task-number: QTCREATORBUG-23683 Change-Id: Idd3a1691c8a2fb46d8289a0de60a39f7020bc5a9 Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/appoutputpane.cpp | 6 +++--- src/plugins/projectexplorer/projectexplorer.cpp | 6 +++--- src/plugins/projectexplorer/projectexplorersettingspage.ui | 2 +- src/plugins/projectexplorer/runconfigurationaspects.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 4f866490a10..4cc128cc0c2 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -186,14 +186,14 @@ AppOutputPane::AppOutputPane() : // Rerun m_reRunButton->setIcon(Utils::Icons::RUN_SMALL_TOOLBAR.icon()); - m_reRunButton->setToolTip(tr("Re-run this run-configuration")); + m_reRunButton->setToolTip(tr("Re-run this run-configuration.")); m_reRunButton->setEnabled(false); connect(m_reRunButton, &QToolButton::clicked, this, &AppOutputPane::reRunRunControl); // Stop m_stopAction->setIcon(Utils::Icons::STOP_SMALL_TOOLBAR.icon()); - m_stopAction->setToolTip(tr("Stop Running Program")); + m_stopAction->setToolTip(tr("Stop running program.")); m_stopAction->setEnabled(false); Core::Command *cmd = Core::ActionManager::registerAction(m_stopAction, Constants::STOP); @@ -833,7 +833,7 @@ public: : {&m_runOutputModeComboBox, &m_debugOutputModeComboBox}) { modeComboBox->addItem(tr("Always"), int(AppOutputPaneMode::PopupOnOutput)); modeComboBox->addItem(tr("Never"), int(AppOutputPaneMode::FlashOnOutput)); - modeComboBox->addItem(tr("On first output only"), + modeComboBox->addItem(tr("On First Output Only"), int(AppOutputPaneMode::PopupOnFirstOutput)); } m_runOutputModeComboBox.setCurrentIndex(m_runOutputModeComboBox diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 71a0ec5468c..66b04ba4ef6 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1086,7 +1086,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er msessionContextMenu->addAction(cmd, Constants::G_SESSION_BUILD); dd->m_buildSessionForAllConfigsAction - = new QAction(buildIcon, tr("Build All Projects For All Configurations"), this); + = new QAction(buildIcon, tr("Build All Projects for All Configurations"), this); cmd = ActionManager::registerAction(dd->m_buildSessionForAllConfigsAction, Constants::BUILDSESSIONALLCONFIGS); mbuild->addAction(cmd, Constants::G_BUILD_BUILD); @@ -1106,7 +1106,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er msessionContextMenu->addAction(cmd, Constants::G_SESSION_REBUILD); dd->m_rebuildSessionForAllConfigsAction - = new QAction(Icons::REBUILD.icon(), tr("Rebuild All Projects For All Configurations"), + = new QAction(Icons::REBUILD.icon(), tr("Rebuild All Projects for All Configurations"), this); cmd = ActionManager::registerAction(dd->m_rebuildSessionForAllConfigsAction, Constants::REBUILDSESSIONALLCONFIGS); @@ -1121,7 +1121,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er msessionContextMenu->addAction(cmd, Constants::G_SESSION_REBUILD); dd->m_cleanSessionForAllConfigsAction = new QAction(Utils::Icons::CLEAN.icon(), - tr("Clean All Projects For All Configurations"), this); + tr("Clean All Projects for All Configurations"), this); cmd = ActionManager::registerAction(dd->m_cleanSessionForAllConfigsAction, Constants::CLEANSESSIONALLCONFIGS); mbuild->addAction(cmd, Constants::G_BUILD_CLEAN); diff --git a/src/plugins/projectexplorer/projectexplorersettingspage.ui b/src/plugins/projectexplorer/projectexplorersettingspage.ui index d17b7582c4a..2a2fc286d73 100644 --- a/src/plugins/projectexplorer/projectexplorersettingspage.ui +++ b/src/plugins/projectexplorer/projectexplorersettingspage.ui @@ -263,7 +263,7 @@ - Deduced From Project + Deduced from Project diff --git a/src/plugins/projectexplorer/runconfigurationaspects.cpp b/src/plugins/projectexplorer/runconfigurationaspects.cpp index 0b1f61c5f47..4ec47bca4e4 100644 --- a/src/plugins/projectexplorer/runconfigurationaspects.cpp +++ b/src/plugins/projectexplorer/runconfigurationaspects.cpp @@ -344,7 +344,7 @@ void ArgumentsAspect::addToLayout(LayoutBuilder &builder) containerLayout->setContentsMargins(0, 0, 0, 0); containerLayout->addWidget(setupChooser()); m_multiLineButton = new ExpandButton; - m_multiLineButton->setToolTip(tr("Toggle multi-line mode")); + m_multiLineButton->setToolTip(tr("Toggle multi-line mode.")); m_multiLineButton->setChecked(m_multiLine); connect(m_multiLineButton, &QCheckBox::clicked, this, [this](bool checked) { if (m_multiLine == checked)