diff options
author | Pier Luigi Fiorini <pierluigi.fiorini@liri.io> | 2017-01-04 20:04:43 +0100 |
---|---|---|
committer | Pier Luigi Fiorini <pierluigi.fiorini@liri.io> | 2017-02-23 09:10:33 +0000 |
commit | 792a7251dcf3e2783dc94e72a4ff9042671b9eeb (patch) | |
tree | f83402db77d2913bfacde68b2d87f8a0395b897b /src/client/qwaylandscreen.cpp | |
parent | e5eee5dfabf7c66e5d8fa75519b7502b81ffbe6a (diff) |
client: Set screen product information
Set QScreen manufacturer and model and set name to the
output name rather than the model.
Change-Id: I53dfb12d7d992d517885a2c6e9b95abcc57d5117
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/client/qwaylandscreen.cpp')
-rw-r--r-- | src/client/qwaylandscreen.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp index 31d21a1c3..e3d9e7394 100644 --- a/src/client/qwaylandscreen.cpp +++ b/src/client/qwaylandscreen.cpp @@ -89,6 +89,16 @@ QWaylandDisplay * QWaylandScreen::display() const return mWaylandDisplay; } +QString QWaylandScreen::manufacturer() const +{ + return mManufacturer; +} + +QString QWaylandScreen::model() const +{ + return mModel; +} + QRect QWaylandScreen::geometry() const { // Scale geometry for QScreen. This makes window and screen @@ -197,12 +207,11 @@ void QWaylandScreen::output_geometry(int32_t x, int32_t y, int32_t transform) { Q_UNUSED(subpixel); - Q_UNUSED(make); - mTransform = transform; + mManufacturer = make; + mModel = model; - if (!model.isEmpty()) - mOutputName = model; + mTransform = transform; mPhysicalSize = QSize(width, height); mGeometry.moveTopLeft(QPoint(x, y)); |