diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-09-10 11:42:55 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-09-10 20:20:05 +0200 |
commit | 49194275e02a9d6373767d6485bd8ebeeb0abba5 (patch) | |
tree | ae3054b67dd6eb05793bf0a6c6bf51622d302482 /src/widgets/kernel/qwidgetwindow_p.h | |
parent | 8610534f53b228d996279e1208fcf3ec0f125398 (diff) |
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 <paul.tvete@digia.com>
Diffstat (limited to 'src/widgets/kernel/qwidgetwindow_p.h')
-rw-r--r-- | src/widgets/kernel/qwidgetwindow_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |