Fix build with QT_NO_MDIAREA

Change-Id: I456fea53f641476ea63cbe170cc65811c92eb290
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Sérgio Martins 2014-08-12 17:09:36 +01:00 committed by Marc Mutz
parent 9f486efcbe
commit f2c7ea7178

View File

@ -92,8 +92,11 @@ public:
Q_Q(QWindowContainer);
QWidget *p = q->parentWidget();
while (p) {
if (qobject_cast<QMdiSubWindow *>(p) != 0
|| qobject_cast<QAbstractScrollArea *>(p) != 0) {
if (
#ifndef QT_NO_MDIAREA
qobject_cast<QMdiSubWindow *>(p) != 0 ||
#endif
qobject_cast<QAbstractScrollArea *>(p) != 0) {
q->winId();
usesNativeWidgets = true;
break;