diff --git a/src/plugins/clangtools/clangtoolsdiagnosticview.cpp b/src/plugins/clangtools/clangtoolsdiagnosticview.cpp index de6122d80d1..466e6826a27 100644 --- a/src/plugins/clangtools/clangtoolsdiagnosticview.cpp +++ b/src/plugins/clangtools/clangtoolsdiagnosticview.cpp @@ -175,7 +175,7 @@ DiagnosticView::DiagnosticView(QWidget *parent) m_disableGloballyAction = new QAction(this); connect(m_disableGloballyAction, &QAction::triggered, - this, &DiagnosticView::disableCurrentDiagnosticGlobally); + this, &DiagnosticView::disableCheckForCurrentDiagnosticGlobally); installEventFilter(this); @@ -239,7 +239,7 @@ void DiagnosticView::suppressCurrentDiagnostic() filterModel->addSuppressedDiagnostics(diags); } -void DiagnosticView::disableCurrentDiagnosticGlobally() +void DiagnosticView::disableCheckForCurrentDiagnosticGlobally() { ClangToolsSettings * const settings = ClangToolsSettings::instance(); ClangDiagnosticConfigs configs = settings->diagnosticConfigs(); @@ -386,8 +386,8 @@ QList DiagnosticView::customActions() const m_suppressAction->setText(hasMultiSelection ? tr("Suppress Selected Diagnostics") : tr("Suppress This Diagnostic")); m_disableGloballyAction->setEnabled(disableGloballyEnabled()); - m_disableGloballyAction->setText(hasMultiSelection ? tr("Disable Selected Diagnostics Globally") - : tr("Disable This Diagnostic Globally")); + m_disableGloballyAction->setText(hasMultiSelection ? tr("Disable These Checks Globally") + : tr("Disable This Check Globally")); return { m_help, diff --git a/src/plugins/clangtools/clangtoolsdiagnosticview.h b/src/plugins/clangtools/clangtoolsdiagnosticview.h index e9e14c0efb2..de185ef7ec6 100644 --- a/src/plugins/clangtools/clangtoolsdiagnosticview.h +++ b/src/plugins/clangtools/clangtoolsdiagnosticview.h @@ -61,7 +61,7 @@ private: void openEditorForCurrentIndex(); void suppressCurrentDiagnostic(); - void disableCurrentDiagnosticGlobally(); + void disableCheckForCurrentDiagnosticGlobally(); enum Direction { Next = 1, Previous = -1 }; QModelIndex getIndex(const QModelIndex &index, Direction direction) const; QModelIndex getTopLevelIndex(const QModelIndex &index, Direction direction) const;