Remove bad compile-time check for QMacStyle
QMacStyle already sets SH_Workspace_FillSpaceOnMaximize, so this will have the same behavior when QMacStyle is in use. Change-Id: Ibe9f93b2ca94d84b0ce2d3a3078b7db6d5906042 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>bb10
parent
580156e555
commit
2810f39658
|
|
@ -1768,10 +1768,6 @@ bool QMdiSubWindowPrivate::drawTitleBarWhenMaximized() const
|
|||
if (isChildOfTabbedQMdiArea(q))
|
||||
return false;
|
||||
|
||||
#if QT_CONFIG(style_mac)
|
||||
Q_UNUSED(isChildOfQMdiSubWindow);
|
||||
return true;
|
||||
#else
|
||||
if (q->style()->styleHint(QStyle::SH_Workspace_FillSpaceOnMaximize, 0, q))
|
||||
return true;
|
||||
#if defined(QT_NO_MENUBAR) || defined(QT_NO_MAINWINDOW)
|
||||
|
|
@ -1785,7 +1781,6 @@ bool QMdiSubWindowPrivate::drawTitleBarWhenMaximized() const
|
|||
|
||||
return isChildOfQMdiSubWindow(q);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef QT_NO_MENUBAR
|
||||
|
|
|
|||
Loading…
Reference in New Issue