From ad5303f9fac60088da4bb68a12817ca0fb7240f4 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 13 Sep 2024 10:25:43 +0200 Subject: [PATCH] Fix selection of empty editor view - open QtC and switch to edit mode - split the editor view - click on the empty views The view you clicked on should get selected (color changes and the colored bar moves to it). This broke when implementing back/forward gesture support which accidentally stopped propagating events on the views. Also fix the corresponding code for the help viewer. Amends 789872a0f9283499d4dfe6b14480bc296ba1a8b7 Change-Id: Iee1a58ac62451d96a2533153edb40a4272dd0b0e Reviewed-by: David Schulz --- src/plugins/coreplugin/editormanager/editorview.cpp | 2 +- src/plugins/help/helpviewer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/editormanager/editorview.cpp b/src/plugins/coreplugin/editormanager/editorview.cpp index e82e1e6bee0..598199726c1 100644 --- a/src/plugins/coreplugin/editormanager/editorview.cpp +++ b/src/plugins/coreplugin/editormanager/editorview.cpp @@ -338,7 +338,7 @@ bool EditorView::event(QEvent *e) } } } - return false; + return QWidget::event(e); } void EditorView::addEditor(IEditor *editor) diff --git a/src/plugins/help/helpviewer.cpp b/src/plugins/help/helpviewer.cpp index 1fc9f45a351..bc8568cf80e 100644 --- a/src/plugins/help/helpviewer.cpp +++ b/src/plugins/help/helpviewer.cpp @@ -204,7 +204,7 @@ bool HelpViewer::event(QEvent *e) } } } - return false; + return QWidget::event(e); } void HelpViewer::incrementZoom(int steps)