Go to file
Gabriel de Dietrich 5d6878f234 QMainWindow: Clear menubar parent when new one is set
In QMainWindow::setMenuBar(), we hide and schedule the current
menubar, if any, to be deleted later. However, it remains installed
as its whole ancestry's event filter, which could conflict with the
newly assigned menubar until the old menubar is destroyed. In our
case, we have noticed issues with the Cocoa QPA plugin.

We force uninstalling the old menubar as event filter by setting its
parent to null, pending its deletion shortly after.

This fixes BigMenuCreator's empty menubar when calling it with only
the "--new-menubar" option. It also fixes QTBUG-34160 example which
was not behaving as well as it should.

Task-number: QTBUG-34160
Change-Id: Ifefb72affad01e7b7371005442074afd6a39a5b8
Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2017-11-07 19:36:29 +00:00
bin don't include injected headers into linker version script 2016-10-14 09:00:29 +00:00
config.tests ANGLE: Fix build for newer MinGW versions 2017-08-02 16:38:28 +00:00
dist Add changes file for Qt 5.9.2 2017-09-29 15:21:40 +00:00
doc Fix jumping to anchors with offline style 2017-08-29 11:25:27 +00:00
examples Revamp QtConcurrent examples to C++11 2017-11-07 09:42:34 +00:00
lib
mkspecs Disable Xcode main thread checker by default 2017-11-07 14:53:59 +00:00
qmake qmake: Actually resolve QMAKE_SHELL_NULL_DEVICE when writing to Makefile 2017-10-16 15:27:43 +00:00
src QMainWindow: Clear menubar parent when new one is set 2017-11-07 19:36:29 +00:00
tests qudpsocket.pro - fix dependencies 2017-11-07 09:23:38 +00:00
util QtCore: include mocs 2017-05-05 03:03:30 +00:00
.gitattributes
.gitignore GitIgnore config.status.bat and config.tests/.qmake.stash 2017-06-13 05:58:30 +00:00
.qmake.conf Bump version 2017-10-06 18:00:03 +02:00
.tag
config_help.txt Add qmake feature and configure option to use ccache 2017-09-05 10:47:35 +00:00
configure configure: dispose of which.test 2017-08-02 16:37:32 +00:00
configure.bat configure: balk at any of {{,X}QMAKESPEC,QMAKE{PATH,FEATURES}} being set 2017-04-21 09:22:27 +00:00
configure.json Add qmake feature and configure option to use ccache 2017-09-05 10:47:35 +00:00
configure.pri Append the QMAKE_EXTRA_ARGS to the output instead of overwriting it 2017-08-25 10:32:32 +00:00
header.BSD
header.COMM
header.FDL
header.GPL
header.GPL-EXCEPT
header.LGPL
header.LGPL3
header.LGPL3-COMM
header.LGPL21
header.LGPL-NOGPL2
header.LGPL-ONLY
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.GPLv3
LICENSE.LGPL3
LICENSE.LGPLv3
LICENSE.LGPLv21
LICENSE.PREVIEW.COMMERCIAL
qtbase.pro nuke configure -host-option 2016-12-13 18:55:59 +00:00
sync.profile Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00