diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-08-02 10:07:12 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-08-02 13:29:40 (GMT) |
commit | 6e0edcce4c215f01416a5ee8467b7abe4665e592 (patch) | |
tree | 9f628f973a25a75a10d5010d6da42b941bc18bc8 /src/gui/kernel/qwidget_qpa.cpp | |
parent | da0d594f7d1b01145c5ec47f36d039435e04e7a5 (diff) | |
download | Qt-6e0edcce4c215f01416a5ee8467b7abe4665e592.zip Qt-6e0edcce4c215f01416a5ee8467b7abe4665e592.tar.gz Qt-6e0edcce4c215f01416a5ee8467b7abe4665e592.tar.bz2 |
Make openkode plugin handle events
And make it also work without a gui manager
Diffstat (limited to 'src/gui/kernel/qwidget_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_qpa.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_qpa.cpp b/src/gui/kernel/qwidget_qpa.cpp index 3584f87..ef53004 100644 --- a/src/gui/kernel/qwidget_qpa.cpp +++ b/src/gui/kernel/qwidget_qpa.cpp @@ -63,6 +63,7 @@ void setParentForChildrenOfWidget(QPlatformWindow *window, const QWidget *widget if (childWidget) { // should not be necessary if (childWidget->platformWindow()) { childWidget->platformWindow()->setParent(window); + childWidget->platformWindow()->setWindowFlags(Qt::SubWindow); } else { setParentForChildrenOfWidget(window,childWidget); } @@ -106,6 +107,7 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO if (QWidget *nativeParent = q->nativeParentWidget()) { if (nativeParent->platformWindow()) { platformWindow->setParent(nativeParent->platformWindow()); + platformWindow->setWindowFlags(Qt::SubWindow); } } @@ -174,6 +176,7 @@ void QWidgetPrivate::setParent_sys(QWidget *newparent, Qt::WindowFlags f) QWidget * parentWithWindow = newparent->platformWindow()? newparent : newparent->nativeParentWidget(); if (parentWithWindow && parentWithWindow->platformWindow()) { q->platformWindow()->setParent(parentWithWindow->platformWindow()); + q->platformWindow()->setWindowFlags(Qt::SubWindow); } } |