diff options
author | Rafael Roquetto <rafael.roquetto.qnx@kdab.com> | 2012-12-21 16:04:46 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-05 09:47:21 (GMT) |
commit | ece0d57613d5fdc3a5a1d1fd4c8a27b3957ea630 (patch) | |
tree | e31e0faa10607c98652f0ca72feaa6e1b1095b9a | |
parent | c35fdc11b5d2b71d8b84fbfafadd494423bf588d (diff) | |
download | Qt-ece0d57613d5fdc3a5a1d1fd4c8a27b3957ea630.zip Qt-ece0d57613d5fdc3a5a1d1fd4c8a27b3957ea630.tar.gz Qt-ece0d57613d5fdc3a5a1d1fd4c8a27b3957ea630.tar.bz2 |
Fix QWidget::hide() on QPA platforms
We must check within QWidgetPrivate::hide_sys() if the widget has a platform
window and hide it.
Fixed on Qt5 as a side effect of 09163941268745bbe231d0b2c25697940aa40127
Change-Id: Id0f5e748e69789027cbde427d37655d19a4ccab2
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Debao Zhang <hello@debao.me>
Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
-rw-r--r-- | src/gui/kernel/qwidget_qpa.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_qpa.cpp b/src/gui/kernel/qwidget_qpa.cpp index 6696d2f..241261e 100644 --- a/src/gui/kernel/qwidget_qpa.cpp +++ b/src/gui/kernel/qwidget_qpa.cpp @@ -427,7 +427,6 @@ void QWidgetPrivate::hide_sys() if (p &&p->isVisible()) { invalidateBuffer(q->rect()); } - return; } if (QPlatformWindow *window = q->platformWindow()) { window->setVisible(false); |