From 3f60bd305ad3b094356750c21e253704bbe62681 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 4 Jul 2014 10:39:19 +0200 Subject: Add convenience function for checking screen changes to QPlatformWindow. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add function returning the screen for a new geometry for geometry change events. This ensures that the checking is done in platform screen coordinates (which might differ from QScreen coordinates due to high-DPI changes) and also that no screen changes are emitted for child windows. Change-Id: I406750f59f006f834c386d09c0c85a804014924a Reviewed-by: Jørgen Lind Reviewed-by: Laszlo Agocs --- src/gui/kernel/qplatformwindow.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/kernel/qplatformwindow.h') diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h index 39bd8324a0..8f0e5ff352 100644 --- a/src/gui/kernel/qplatformwindow.h +++ b/src/gui/kernel/qplatformwindow.h @@ -139,6 +139,7 @@ public: protected: static QString formatWindowTitle(const QString &title, const QString &separator); + QPlatformScreen *screenForGeometry(const QRect &newGeometry) const; QScopedPointer d_ptr; private: -- cgit v1.2.3