For QWindow we need topLevelExtra to be created when we have

native widgets
(cherry picked from commit 247088f8fe929d55832f48af3da6f7e5e80cf8a4)
This commit is contained in:
Jørgen Lind 2011-04-27 10:18:50 +02:00 committed by Samuel Rødal
parent d8784df713
commit d72a994a06

View 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;