diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2013-08-26 10:49:48 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-14 18:23:25 +0100 |
commit | d9c34e9cdd24937a3c487d0f525a8b8b38ee1ad5 (patch) | |
tree | 84172b9043b140fe4a3a69a1806eb7b9ebb4da8a /src/widgets/kernel/qwidgetwindow_qpa_p.h | |
parent | 6d858a0fdb896d2c4f9f6411f691f0648c084cd7 (diff) |
Repaint widgets on screen change.
Add a screenChanged handler slot to QWidgetWindow,
which calls markDirty() on the backing store with
the BufferInvalid and UpdateNow flags set.
Update CocoaBackingStore to create a new buffer on
window devicePixelRatio change. Use the
QCocoaWindow::devicePixelRatio() implementation instead
of a duplicate implementation in the backing store.
The plan is to replace this implementation with one
based on QUpdateWindowRequestEvent for Qt 5.4
Change-Id: I8e521c53df4ac90815613e730fe821996334721f
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/widgets/kernel/qwidgetwindow_qpa_p.h')
-rw-r--r-- | src/widgets/kernel/qwidgetwindow_qpa_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/kernel/qwidgetwindow_qpa_p.h b/src/widgets/kernel/qwidgetwindow_qpa_p.h index 8d6f14a669..06ba8ea646 100644 --- a/src/widgets/kernel/qwidgetwindow_qpa_p.h +++ b/src/widgets/kernel/qwidgetwindow_qpa_p.h @@ -101,6 +101,7 @@ protected: private slots: void updateObjectName(); + void repaintWindow(); private: void updateGeometry(); |