From f2c7ea717874664ee4927f500efc244fde585d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Martins?= Date: Tue, 12 Aug 2014 17:09:36 +0100 Subject: Fix build with QT_NO_MDIAREA Change-Id: I456fea53f641476ea63cbe170cc65811c92eb290 Reviewed-by: Marc Mutz --- src/widgets/kernel/qwindowcontainer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/widgets/kernel/qwindowcontainer.cpp') diff --git a/src/widgets/kernel/qwindowcontainer.cpp b/src/widgets/kernel/qwindowcontainer.cpp index 1770e60c2e..dc35dee1a9 100644 --- a/src/widgets/kernel/qwindowcontainer.cpp +++ b/src/widgets/kernel/qwindowcontainer.cpp @@ -92,8 +92,11 @@ public: Q_Q(QWindowContainer); QWidget *p = q->parentWidget(); while (p) { - if (qobject_cast(p) != 0 - || qobject_cast(p) != 0) { + if ( +#ifndef QT_NO_MDIAREA + qobject_cast(p) != 0 || +#endif + qobject_cast(p) != 0) { q->winId(); usesNativeWidgets = true; break; -- cgit v1.2.3