For QWindow we need topLevelExtra to be created when we have
authorJørgen Lind <jorgen.lind@nokia.com>
Wed, 27 Apr 2011 08:18:50 +0000 (10:18 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Thu, 28 Apr 2011 13:39:28 +0000 (15:39 +0200)
native widgets
(cherry picked from commit 247088f8fe929d55832f48af3da6f7e5e80cf8a4)

src/gui/kernel/qwidget.cpp

index d1abc8f..d107bf1 100644 (file)
@@ -10782,6 +10782,9 @@ void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)
         QApplication::sendEvent(this, &e);
         break; }
     case Qt::WA_NativeWindow: {
+#if defined(Q_WS_QPA)
+        d->createTLExtra();
+#endif
 #ifndef QT_NO_IM
         QWidget *focusWidget = d->effectiveFocusWidget();
         QInputContext *ic = 0;