ClangTools: Make space toggle the fixit state only

...instead of also going to the diagnostic location in the editor.

This allows to toggle desired fixits without loosing focus (analyzer
view -> editor widget).

Change-Id: Ie8a0379ee1e811c01a2f0666f3627e3a9b537b04
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-02-11 14:16:14 +01:00
parent fd04104484
commit e8509cd858

View File

@@ -283,7 +283,6 @@ bool DiagnosticView::eventFilter(QObject *watched, QEvent *event)
switch (key) {
case Qt::Key_Return:
case Qt::Key_Enter:
case Qt::Key_Space:
openEditorForCurrentIndex();
}
return true;