diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-01-10 13:02:17 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-01-10 13:55:04 +0100 |
commit | e57fb37c66d0efa3eb1b9367d284dc5643406cda (patch) | |
tree | bc481a88808d453d1e8863d59bb04c189448a842 | |
parent | 9e637d9718d52075a74eeb6b7d9ae21fa9105a52 (diff) | |
download | qtwayland-e57fb37c66d0efa3eb1b9367d284dc5643406cda.tar.gz |
Don't use deprecated QMatrix class anymore
Task-number: QTBUG-46653
Change-Id: I038a370ca8af642605709fa5ffdb1c619c60433b
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
-rw-r--r-- | src/client/qwaylandshmbackingstore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/qwaylandshmbackingstore.cpp b/src/client/qwaylandshmbackingstore.cpp index 8d5b977d..dc7ff670 100644 --- a/src/client/qwaylandshmbackingstore.cpp +++ b/src/client/qwaylandshmbackingstore.cpp @@ -47,6 +47,7 @@ #include <QtCore/qstandardpaths.h> #include <QtCore/qtemporaryfile.h> #include <QtGui/QPainter> +#include <QtGui/QTransform> #include <QMutexLocker> #include <QtWaylandClient/private/wayland-wayland-client-protocol.h> @@ -328,7 +329,7 @@ void QWaylandShmBackingStore::updateDecorations() qreal dp = sourceImage.devicePixelRatio(); int dpWidth = int(sourceImage.width() / dp); int dpHeight = int(sourceImage.height() / dp); - QMatrix sourceMatrix; + QTransform sourceMatrix; sourceMatrix.scale(dp, dp); QRect target; // needs to be in device independent pixels |