From abb47fc6803a3246b67ca6c8357f34ebd0b3e9cc Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Tue, 13 Dec 2016 20:23:55 +0100 Subject: Add screen product information Add new methods to QPlatformScreen that platform plugins can reimplement in order to provide more information such as vendor, model and serial number. Expose that information as QScreen properties. A use-case for this feature is a Wayland compositor that maps screens to Wayland outputs hence it needs to replicate the information. This information can also be added to the diagnostic output of qtdiag. [ChangeLog][QtGui][QScreen] Add manufacturer, model and serialNumber properties. Change-Id: Ia6945f41023340602ef9d618e0d833a0c1825ab3 Reviewed-by: Johan Helsing Reviewed-by: Shawn Rutledge Reviewed-by: Laszlo Agocs --- src/gui/kernel/qplatformscreen.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/kernel/qplatformscreen.h') diff --git a/src/gui/kernel/qplatformscreen.h b/src/gui/kernel/qplatformscreen.h index 2d3cbaf170..aa32917b6c 100644 --- a/src/gui/kernel/qplatformscreen.h +++ b/src/gui/kernel/qplatformscreen.h @@ -129,6 +129,10 @@ public: virtual QString name() const { return QString(); } + virtual QString manufacturer() const; + virtual QString model() const; + virtual QString serialNumber() const; + virtual QPlatformCursor *cursor() const; virtual SubpixelAntialiasingType subpixelAntialiasingTypeHint() const; -- cgit v1.2.3