Don't use deprecated QMatrix class anymore
Task-number: QTBUG-46653 Change-Id: I038a370ca8af642605709fa5ffdb1c619c60433b Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
parent
174a93750a
commit
98e42661d5
@ -47,6 +47,7 @@
|
|||||||
#include <QtCore/qstandardpaths.h>
|
#include <QtCore/qstandardpaths.h>
|
||||||
#include <QtCore/qtemporaryfile.h>
|
#include <QtCore/qtemporaryfile.h>
|
||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
|
#include <QtGui/QTransform>
|
||||||
#include <QMutexLocker>
|
#include <QMutexLocker>
|
||||||
|
|
||||||
#include <QtWaylandClient/private/wayland-wayland-client-protocol.h>
|
#include <QtWaylandClient/private/wayland-wayland-client-protocol.h>
|
||||||
@ -328,7 +329,7 @@ void QWaylandShmBackingStore::updateDecorations()
|
|||||||
qreal dp = sourceImage.devicePixelRatio();
|
qreal dp = sourceImage.devicePixelRatio();
|
||||||
int dpWidth = int(sourceImage.width() / dp);
|
int dpWidth = int(sourceImage.width() / dp);
|
||||||
int dpHeight = int(sourceImage.height() / dp);
|
int dpHeight = int(sourceImage.height() / dp);
|
||||||
QMatrix sourceMatrix;
|
QTransform sourceMatrix;
|
||||||
sourceMatrix.scale(dp, dp);
|
sourceMatrix.scale(dp, dp);
|
||||||
QRect target; // needs to be in device independent pixels
|
QRect target; // needs to be in device independent pixels
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user