Fix QTabletEvent manual tests

- QPainterPath needs an explicit include now
- QTabletEvent::device() is deprecated

Change-Id: I2d1086847ee2cf5ed63e345c7c2d6eb43897f0e4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Shawn Rutledge 2020-04-01 10:03:24 +02:00
parent 5c1bc5c8a4
commit f515ca5dcd
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ bool TabletWidget::eventFilter(QObject *, QEvent *ev)
mPos = event->pos();
mGPos = event->globalPos();
mHiResGlobalPos = event->posF();
mDev = event->device();
mDev = event->deviceType();
mPointerType = event->pointerType();
mUnique = event->uniqueId();
mXT = event->xTilt();

View File

@ -37,6 +37,7 @@
#include <QStatusBar>
#include <QVector>
#include <QPainter>
#include <QPainterPath>
#include <QCursor>
enum TabletPointType {