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 789872a0f9

Change-Id: Iee1a58ac62451d96a2533153edb40a4272dd0b0e
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2024-09-13 10:25:43 +02:00
parent b76cfb1ea6
commit ad5303f9fa
2 changed files with 2 additions and 2 deletions

View File

@@ -338,7 +338,7 @@ bool EditorView::event(QEvent *e)
} }
} }
} }
return false; return QWidget::event(e);
} }
void EditorView::addEditor(IEditor *editor) void EditorView::addEditor(IEditor *editor)

View File

@@ -204,7 +204,7 @@ bool HelpViewer::event(QEvent *e)
} }
} }
} }
return false; return QWidget::event(e);
} }
void HelpViewer::incrementZoom(int steps) void HelpViewer::incrementZoom(int steps)