Reverting merge request 916
Revert "Build fix on QMenuBar" This reverts commit ea585d567bf0970c57e31846da044295d80774ba. (cherry picked from commit 68542b72f53f52df43063677e24994463872e81b)
This commit is contained in:
parent
d9cc2f8ff2
commit
9b609e1c05
@ -120,10 +120,12 @@ void QMenuBarImpl::actionEvent(QActionEvent *e)
|
|||||||
|
|
||||||
void QMenuBarImpl::handleReparent(QWidget *oldParent, QWidget *newParent, QWidget *oldWindow, QWidget *newWindow)
|
void QMenuBarImpl::handleReparent(QWidget *oldParent, QWidget *newParent, QWidget *oldWindow, QWidget *newWindow)
|
||||||
{
|
{
|
||||||
|
#ifdef Q_WS_X11
|
||||||
Q_UNUSED(oldParent)
|
Q_UNUSED(oldParent)
|
||||||
Q_UNUSED(newParent)
|
Q_UNUSED(newParent)
|
||||||
Q_UNUSED(oldWindow)
|
Q_UNUSED(oldWindow)
|
||||||
Q_UNUSED(newWindow)
|
Q_UNUSED(newWindow)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
if (isNativeMenuBar() && !macWidgetHasNativeMenubar(newParent)) {
|
if (isNativeMenuBar() && !macWidgetHasNativeMenubar(newParent)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user