diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-09-28 14:10:10 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-07 09:04:38 +0000 |
commit | 06089a19e52126bb83016d6a360aaf32c53bed49 (patch) | |
tree | e6058ddc96b75ce9f6cf7f8131fe203cf3819a87 /src/plugins/platforms/xcb/qxcbwindow.h | |
parent | 23d0c77ce86927963ea2b0a31564cfd5189a7539 (diff) |
xcb: Unify visual to QImage::Format logic
Make a common function to replace the two existing ones that convert
from XCB visuals to QImage format.
Change-Id: I2ae08ef4df96df950910a45e71c9d9cd98375b2e
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.h b/src/plugins/platforms/xcb/qxcbwindow.h index ebace55328..176f9a234c 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.h +++ b/src/plugins/platforms/xcb/qxcbwindow.h @@ -188,7 +188,7 @@ public Q_SLOTS: protected: virtual void resolveFormat(const QSurfaceFormat &format) { m_format = format; } virtual const xcb_visualtype_t *createVisual(); - QImage::Format imageFormatForVisual(const xcb_visualtype_t *visual, bool *rgbSwap) const; + void setImageFormatForVisual(const xcb_visualtype_t *visual); QXcbScreen *parentScreen(); |