From 49194275e02a9d6373767d6485bd8ebeeb0abba5 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 10 Sep 2014 11:42:55 +0200 Subject: Expose screen change event to widgets so that they can check the dpr Unlike ordinary widgets, the ones that have OpenGL framebuffers must know about screen changes because the device pixel ratio may be different on the new screen. Add an internal event, ScreenChangeInternal, as the counterpart to WindowChangeInternal. Change-Id: I5e55999838e4c0284e7d9832299f7cc6b541ee3f Reviewed-by: Paul Olav Tvete --- src/widgets/kernel/qwidgetwindow_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widgets/kernel/qwidgetwindow_p.h') diff --git a/src/widgets/kernel/qwidgetwindow_p.h b/src/widgets/kernel/qwidgetwindow_p.h index be2adddff5..87ad7a4bd4 100644 --- a/src/widgets/kernel/qwidgetwindow_p.h +++ b/src/widgets/kernel/qwidgetwindow_p.h @@ -101,9 +101,10 @@ protected: private slots: void updateObjectName(); - void repaintWindow(); + void handleScreenChange(); private: + void repaintWindow(); void updateGeometry(); void updateNormalGeometry(); -- cgit v1.2.3