diff options
author | Paul Olav Tvete <paul.tvete@digia.com> | 2014-07-29 13:12:01 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@digia.com> | 2014-08-19 13:22:20 +0200 |
commit | ae5f2a66720a4bb22c120bd7d1564652cac00367 (patch) | |
tree | 21c059bb667bd6afa3192b8de7cbead877c142ab /src/plugins/platforms/xcb/qxcbwindow.h | |
parent | 98cd256d24eadbe5d9de91a2ab86c2bb5d7a766a (diff) |
devicePixelRatio support for XCB
This adds support for the environment variable
QT_DEVICE_PIXEL_RATIO for the xcb platform plugin.
Task-number: QTBUG-38858
Change-Id: I7faca2f2e7dc5c601a82b3cc08456870b3e5602d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.h b/src/plugins/platforms/xcb/qxcbwindow.h index af9b06a791..4a81fff5b8 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.h +++ b/src/plugins/platforms/xcb/qxcbwindow.h @@ -160,6 +160,8 @@ public: void postSyncWindowRequest(); void clearSyncWindowRequest() { m_pendingSyncRequest = 0; } + qreal devicePixelRatio() const; + public Q_SLOTS: void updateSyncRequestCounter(); |