Commit 1ec4bbb0 authored by Leena Miettinen's avatar Leena Miettinen
Browse files

Clang Static Analyzer: Fix UI text capitalization



Change-Id: I6347b455be55d34f8cd038f618326cfc6d77c582
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 3c9a893a
...@@ -144,7 +144,7 @@ static QString createExplainingStepToolTipString(const ExplainingStep &step) ...@@ -144,7 +144,7 @@ static QString createExplainingStepToolTipString(const ExplainingStep &step)
} }
if (!step.extendedMessage.isEmpty()) { if (!step.extendedMessage.isEmpty()) {
lines << qMakePair( lines << qMakePair(
QCoreApplication::translate("ClangStaticAnalyzer::ExplainingStep", "Extended Message:"), QCoreApplication::translate("ClangStaticAnalyzer::ExplainingStep", "Extended message:"),
step.extendedMessage.toHtmlEscaped()); step.extendedMessage.toHtmlEscaped());
} }
......
...@@ -44,7 +44,7 @@ namespace Internal { ...@@ -44,7 +44,7 @@ namespace Internal {
ClangStaticAnalyzerDiagnosticView::ClangStaticAnalyzerDiagnosticView(QWidget *parent) ClangStaticAnalyzerDiagnosticView::ClangStaticAnalyzerDiagnosticView(QWidget *parent)
: Debugger::DetailedErrorView(parent) : Debugger::DetailedErrorView(parent)
{ {
m_suppressAction = new QAction(tr("Suppress this diagnostic"), this); m_suppressAction = new QAction(tr("Suppress This Diagnostic"), this);
connect(m_suppressAction, &QAction::triggered, [this](bool) { suppressCurrentDiagnostic(); }); connect(m_suppressAction, &QAction::triggered, [this](bool) { suppressCurrentDiagnostic(); });
} }
......
...@@ -120,7 +120,7 @@ ClangStaticAnalyzerTool::ClangStaticAnalyzerTool(QObject *parent) ...@@ -120,7 +120,7 @@ ClangStaticAnalyzerTool::ClangStaticAnalyzerTool(QObject *parent)
connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goNext); connect(action, &QAction::triggered, m_diagnosticView, &DetailedErrorView::goNext);
m_goNext = action; m_goNext = action;
const QString toolTip = tr("Clang Static Analyzer uses the analyzer from the clang project " const QString toolTip = tr("Clang Static Analyzer uses the analyzer from the Clang project "
"to find bugs."); "to find bugs.");
Debugger::registerPerspective(ClangStaticAnalyzerPerspectiveId, { Debugger::registerPerspective(ClangStaticAnalyzerPerspectiveId, {
...@@ -311,7 +311,7 @@ void ClangStaticAnalyzerTool::handleStateUpdate() ...@@ -311,7 +311,7 @@ void ClangStaticAnalyzerTool::handleStateUpdate()
m_goBack->setEnabled(issuesVisible > 1); m_goBack->setEnabled(issuesVisible > 1);
m_goNext->setEnabled(issuesVisible > 1); m_goNext->setEnabled(issuesVisible > 1);
QString message = m_running ? tr("Clang Static Analyzer running.") QString message = m_running ? tr("Clang Static Analyzer is running.")
: tr("Clang Static Analyzer finished."); : tr("Clang Static Analyzer finished.");
message += QLatin1Char(' '); message += QLatin1Char(' ');
if (issuesFound == 0) { if (issuesFound == 0) {
......
...@@ -91,7 +91,7 @@ bool isClangExecutableUsable(const QString &filePath, QString *errorMessage) ...@@ -91,7 +91,7 @@ bool isClangExecutableUsable(const QString &filePath, QString *errorMessage)
if (errorMessage) { if (errorMessage) {
*errorMessage = QCoreApplication::translate("ClangStaticAnalyzer", *errorMessage = QCoreApplication::translate("ClangStaticAnalyzer",
"The chosen file \"%1\" seems to point to an icecc binary not suitable " "The chosen file \"%1\" seems to point to an icecc binary not suitable "
"for analyzing.\nPlease set a real clang executable.") "for analyzing.\nPlease set a real Clang executable.")
.arg(filePath); .arg(filePath);
} }
return false; return false;
......
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