diff options
Diffstat (limited to 'src/gui/kernel/qplatformwindow_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformwindow_qpa.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformwindow_qpa.cpp b/src/gui/kernel/qplatformwindow_qpa.cpp index 973c641ad1..227059e24e 100644 --- a/src/gui/kernel/qplatformwindow_qpa.cpp +++ b/src/gui/kernel/qplatformwindow_qpa.cpp @@ -142,11 +142,13 @@ QMargins QPlatformWindow::frameMargins() const /*! Reimplemented in subclasses to show the surface if \a visible is \c true, and hide it if \a visible is \c false. + + The default implementation sends a synchronous expose event. */ void QPlatformWindow::setVisible(bool visible) { - Q_UNUSED(visible); - QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRect(QPoint(), geometry().size())); + QRect rect(QPoint(), geometry().size()); + QWindowSystemInterface::handleSynchronousExposeEvent(window(), rect); } /*! Requests setting the window flags of this surface |