diff options
author | Jørgen Lind <[email protected]> | 2011-04-27 10:18:50 +0200 |
---|---|---|
committer | Samuel Rødal <[email protected]> | 2011-04-28 15:39:28 +0200 |
commit | d72a994a062620aa12e5da556258dce0cf35b509 (patch) | |
tree | 55022d19c7910cac29de4f24478eb59bdc726c7c | |
parent | d8784df713659f932731af2fd8f95b569e215842 (diff) |
For QWindow we need topLevelExtra to be created when we have
native widgets
(cherry picked from commit 247088f8fe929d55832f48af3da6f7e5e80cf8a4)
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index d1abc8f96fa..d107bf1df99 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -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; |