Compile: isChildOfQMdiSubWindow may be unused.

[-Werror,-Wunused-function]

Change-Id: Icf1e60ce3c5dadb96272453583d1cd03379eb73b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Morten Johan Sørvig 2014-03-31 12:38:35 +02:00 committed by The Qt Project
parent d24ada47b4
commit bb73d8d070
1 changed files with 2 additions and 0 deletions

View File

@ -1761,11 +1761,13 @@ bool QMdiSubWindowPrivate::drawTitleBarWhenMaximized() const
return false;
#if defined(Q_OS_MAC) && !defined(QT_NO_STYLE_MAC) || defined(Q_OS_WINCE_WM)
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)
Q_UNUSED(isChildOfQMdiSubWindow);
return true;
#else
QMainWindow *mainWindow = qobject_cast<QMainWindow *>(q->window());