summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface_qpa.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-11-22 11:06:15 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-01 10:51:10 +0100
commit89aee9ecde7ca28b5ed93514c07c41ed110849cc (patch)
treeb700b471bf93b121ab7c2623f25a83af698839d0 /src/gui/kernel/qwindowsysteminterface_qpa.cpp
parent4eedb335c6ca33ba93e56581895205f3a8be527e (diff)
Added QPA window system interface handler for logical DPI changes.
Logical DPI is independent from geometry and physical DPI. Change-Id: Ice487f61e1bda9e6791e2adf6998ebf61cdbaef2 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_qpa.cpp')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa.cpp b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
index 17a5bb4eda7..979a168c05e 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa.cpp
+++ b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
@@ -278,6 +278,13 @@ void QWindowSystemInterface::handleScreenAvailableGeometryChange(QScreen *screen
QWindowSystemInterfacePrivate::queueWindowSystemEvent(e);
}
+void QWindowSystemInterface::handleScreenLogicalDotsPerInchChange(QScreen *screen)
+{
+ QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e =
+ new QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent(screen);
+ QWindowSystemInterfacePrivate::queueWindowSystemEvent(e);
+}
+
void QWindowSystemInterface::handleMapEvent(QWindow *tlw)
{
QWindowSystemInterfacePrivate::MapEvent *e = new QWindowSystemInterfacePrivate::MapEvent(tlw);