diff options
author | Pier Luigi Fiorini <pierluigi.fiorini@liri.io> | 2017-01-06 20:11:22 +0100 |
---|---|---|
committer | Pier Luigi Fiorini <pierluigi.fiorini@liri.io> | 2017-05-04 08:10:31 +0000 |
commit | ec6c21717ae5e0b3ed16235dca6eb1b3db52f74d (patch) | |
tree | 5b7d50e7d0f8a9a064c84e0458401da247c04a39 /src/plugins/platforms/xcb/qxcbscreen.h | |
parent | b1debc11c118bb1e49a9e92a77194140255854fc (diff) |
xcb: Decode EDID blob
Retrieve and parse EDID blob.
Return screen product information from EDID.
[ChangeLog][Platform Specific Changes][Linux/XCB] Add screen product
information from EDID.
Change-Id: Ic54429cdc90c41342c37511bcaebce95c175f517
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbscreen.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbscreen.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbscreen.h b/src/plugins/platforms/xcb/qxcbscreen.h index 21f583ccf7..b9364758c4 100644 --- a/src/plugins/platforms/xcb/qxcbscreen.h +++ b/src/plugins/platforms/xcb/qxcbscreen.h @@ -53,6 +53,8 @@ #include <private/qfontengine_p.h> +#include <QtEdidSupport/private/qedidparser_p.h> + QT_BEGIN_NAMESPACE class QXcbConnection; @@ -147,6 +149,10 @@ public: QWindow *topLevelAt(const QPoint &point) const override; + QString manufacturer() const override; + QString model() const override; + QString serialNumber() const override; + QRect geometry() const override { return m_geometry; } QRect availableGeometry() const override {return m_availableGeometry;} int depth() const override { return screen()->root_depth; } @@ -206,6 +212,9 @@ public: private: void sendStartupMessage(const QByteArray &message) const; + QByteArray getOutputProperty(xcb_atom_t atom) const; + QByteArray getEdid() const; + QXcbVirtualDesktop *m_virtualDesktop; xcb_randr_output_t m_output; xcb_randr_crtc_t m_crtc; @@ -224,6 +233,7 @@ private: QXcbCursor *m_cursor; int m_refreshRate = 60; int m_pixelDensity = 1; + QEdidParser m_edid; }; #ifndef QT_NO_DEBUG_STREAM |