diff options
-rw-r--r-- | src/plugins/platforms/xcb/qxcbscreen.cpp | 5 | ||||
-rw-r--r-- | src/plugins/platforms/xcb/qxcbscreen.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp index 1adde6b..a9a24dd 100644 --- a/src/plugins/platforms/xcb/qxcbscreen.cpp +++ b/src/plugins/platforms/xcb/qxcbscreen.cpp @@ -75,3 +75,8 @@ QImage::Format QXcbScreen::format() const { return QImage::Format_RGB32; } + +QSize QXcbScreen::physicalSize() const +{ + return QSize(m_screen->width_in_millimeters, m_screen->height_in_millimeters); +} diff --git a/src/plugins/platforms/xcb/qxcbscreen.h b/src/plugins/platforms/xcb/qxcbscreen.h index 88de1a8..abebcd9 100644 --- a/src/plugins/platforms/xcb/qxcbscreen.h +++ b/src/plugins/platforms/xcb/qxcbscreen.h @@ -59,6 +59,7 @@ public: QRect geometry() const; int depth() const; QImage::Format format() const; + QSize physicalSize() const; xcb_screen_t *screen() const { return m_screen; } xcb_window_t root() const { return m_screen->root; } |