diff options
author | Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> | 2016-12-13 20:23:55 +0100 |
---|---|---|
committer | Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org> | 2017-01-16 07:46:39 +0000 |
commit | abb47fc6803a3246b67ca6c8357f34ebd0b3e9cc (patch) | |
tree | 25de33d8bca4d8c7c542e77433a96adf7a9bbf69 /src/gui/kernel/qplatformscreen.h | |
parent | 3b0cd132225504f36bc355f239cde95a9bac0985 (diff) |
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 <johan.helsing@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformscreen.h')
-rw-r--r-- | src/gui/kernel/qplatformscreen.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |