ClangTools: Fix terminology

Make it clear we don't disable specific diagnostics, but the checks that
triggered them.

Change-Id: Ie9b5568a1749f59d80827e342cb5299ebfc63227
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2020-11-24 14:35:11 +01:00
parent 02c876f6e8
commit a10a1acd23
2 changed files with 5 additions and 5 deletions

View File

@@ -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<QAction *> 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,

View File

@@ -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;