Commit b627dd2c authored by Felix Bourbonnais's avatar Felix Bourbonnais Committed by Félix Bourbonnais
Browse files

QMenuBar: nested parenting fix


QMenuBar now receives a parent changed event for each of its parent,
grand-parent, ... This fixes a crash caused by an invalid QWidget
pointer and makes sure the keyboard shortcuts events are relayed to the
menu bar in all parenting/re-parenting cases by installing an event
filter on each parent

Task-number: QTBUG-53205
Change-Id: I419e6cbc52e28a67fb08a848a7161b4cb8ae4ae5
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@qt.io>
Reviewed-by: default avatarBłażej Szczygieł <spaz16@wp.pl>
Showing with 92 additions and 25 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment