diff options
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbscreen.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbscreen.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbscreen.h b/src/plugins/platforms/xcb/qxcbscreen.h index f327eb31b0..53ad413541 100644 --- a/src/plugins/platforms/xcb/qxcbscreen.h +++ b/src/plugins/platforms/xcb/qxcbscreen.h @@ -50,6 +50,9 @@ QT_BEGIN_NAMESPACE class QXcbConnection; class QXcbCursor; class QXcbXSettings; +#ifndef QT_NO_DEBUG_STREAM +class QDebug; +#endif class Q_XCB_EXPORT QXcbScreen : public QXcbObject, public QPlatformScreen { @@ -68,6 +71,8 @@ public: int depth() const Q_DECL_OVERRIDE { return m_screen->root_depth; } QImage::Format format() const Q_DECL_OVERRIDE; QSizeF physicalSize() const Q_DECL_OVERRIDE { return m_sizeMillimeters; } + QSize virtualSize() const { return m_virtualSize; } + QSizeF physicalVirtualSize() const { return m_virtualSizeMillimeters; } QDpi logicalDpi() const Q_DECL_OVERRIDE; qreal devicePixelRatio() const Q_DECL_OVERRIDE; QPlatformCursor *cursor() const Q_DECL_OVERRIDE; @@ -140,6 +145,10 @@ private: QXcbXSettings *m_xSettings; }; +#ifndef QT_NO_DEBUG_STREAM +Q_GUI_EXPORT QDebug operator<<(QDebug, const QXcbScreen *); +#endif + QT_END_NAMESPACE #endif |