From 8e280d1e187b09651c7036bd76272342d52ce401 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 25 Jun 2012 13:58:41 +0200 Subject: QPlatformWindow: Add Window masks. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add functionality for window masks to QPlatformWindow, which is required to implement QWidget::setMask() in order to fix the regression in functionality from Qt 4.8. Change-Id: I2c2d5629f0b4c6d90e52595ad70b13559aab1f41 Reviewed-by: Samuel Rødal --- src/gui/kernel/qplatformwindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/kernel/qplatformwindow.h') diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h index 604398909d..d9f79f25eb 100644 --- a/src/gui/kernel/qplatformwindow.h +++ b/src/gui/kernel/qplatformwindow.h @@ -68,6 +68,7 @@ class QPlatformScreen; class QPlatformWindowPrivate; class QWindow; class QIcon; +class QRegion; class Q_GUI_EXPORT QPlatformWindow : public QPlatformSurface { @@ -105,6 +106,7 @@ public: virtual void propagateSizeHints(); virtual void setOpacity(qreal level); + virtual void setMask(const QRegion ®ion); virtual void requestActivateWindow(); virtual void handleContentOrientationChange(Qt::ScreenOrientation orientation); -- cgit v1.2.3