diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-12-14 17:48:57 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-01-25 17:21:54 +0100 |
commit | fdc7eb80dd5753bc1fc145dc9bd0689cd65e251d (patch) | |
tree | f8f80675b1187cb899c2bab90f3d53f950ca9108 /src/gui/kernel | |
parent | 4e2a94236998cd05753167953d9167793baf9942 (diff) |
Add QPlatformScreen::colorSpace()
Added for macOS and X11 screens
Task-number: QTBUG-90535
Change-Id: Ifafe7a07ee2abc3c42cd12785db2d7329878375b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qplatformscreen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformscreen.h b/src/gui/kernel/qplatformscreen.h index 0045e9c40d..4e1ea4b3a9 100644 --- a/src/gui/kernel/qplatformscreen.h +++ b/src/gui/kernel/qplatformscreen.h @@ -57,6 +57,7 @@ #include <QtCore/qrect.h> #include <QtCore/qobject.h> +#include <QtGui/qcolorspace.h> #include <QtGui/qcursor.h> #include <QtGui/qimage.h> #include <QtGui/qwindowdefs.h> @@ -114,6 +115,7 @@ public: virtual int depth() const = 0; virtual QImage::Format format() const = 0; + virtual QColorSpace colorSpace() const { return QColorSpace::SRgb; } virtual QSizeF physicalSize() const; virtual QDpi logicalDpi() const; |