path: root/src/gui/kernel/qplatformscreen.h
diff options
authorPier Luigi Fiorini <>2016-12-13 20:23:55 +0100
committerPier Luigi Fiorini <>2017-01-16 07:46:39 +0000
commitabb47fc6803a3246b67ca6c8357f34ebd0b3e9cc (patch)
tree25de33d8bca4d8c7c542e77433a96adf7a9bbf69 /src/gui/kernel/qplatformscreen.h
parent3b0cd132225504f36bc355f239cde95a9bac0985 (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 <> Reviewed-by: Shawn Rutledge <> Reviewed-by: Laszlo Agocs <>
Diffstat (limited to 'src/gui/kernel/qplatformscreen.h')
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;