diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-06-03 14:35:09 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-06-03 14:35:09 +0200 |
commit | 7e4116cc8a54e9e46c7bb4c96a54fb96ab38f3d5 (patch) | |
tree | e8e21bcaeb871711daf7e0b0694e92c9d7d15414 /src/widgets/kernel/qwidget_qpa.cpp | |
parent | a9910abac9b3c9cf5aa532ca9d3e62e6cae0b839 (diff) |
Basic QDesktopWidget support.
Makes it possible to use grabWindow on the desktop widget with the xcb
plugin, which gives us a few more passing tests in tst_QWidget.
Diffstat (limited to 'src/widgets/kernel/qwidget_qpa.cpp')
-rw-r--r-- | src/widgets/kernel/qwidget_qpa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/kernel/qwidget_qpa.cpp b/src/widgets/kernel/qwidget_qpa.cpp index 4bfd6f19a7..169977db25 100644 --- a/src/widgets/kernel/qwidget_qpa.cpp +++ b/src/widgets/kernel/qwidget_qpa.cpp @@ -90,7 +90,7 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO Qt::WindowFlags flags = data.window_flags; - if ((!q->testAttribute(Qt::WA_NativeWindow) && !q->isWindow()) || q->windowType() == Qt::Desktop ) + if (!q->testAttribute(Qt::WA_NativeWindow) && !q->isWindow()) return; // we only care about real toplevels QWindowSurface *surface = q->windowSurface(); @@ -776,7 +776,7 @@ void QWidgetPrivate::createTLSysExtra() Q_Q(QWidget); extra->topextra->screenIndex = 0; extra->topextra->window = 0; - if ((q->testAttribute(Qt::WA_NativeWindow) || q->isWindow()) && q->windowType() != Qt::Desktop) + if (q->testAttribute(Qt::WA_NativeWindow) || q->isWindow()) extra->topextra->window = new QWidgetWindow(q); } |