Fix some compile warnings

QTouchEvent::touchPoints() is deprecated and replaced by just
points(), and there is a new value in Qt::TouchPointState.

normalizedPos() is replaced by normalizedPosition().

And QVariant::type() is deprecated.

Change-Id: I4a4eea2775030f67ad12488df25d4859099c1783
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2020-10-27 14:36:38 +01:00
parent b18aba6a42
commit f2bc2a7c19

View File

@ -421,7 +421,7 @@ public:
explicit Event(const QTouchEvent *event)
: type(event->type())
, touchPointStates(event->touchPointStates())
, touchPoints(event->touchPoints())
, touchPoints(event->points())
{
}
QEvent::Type type{};
@ -506,7 +506,7 @@ void tst_seatv5::multiTouch()
t->sendDown(xdgToplevel()->surface(), {48, 48}, 1);
t->sendFrame(c);
// Compositor event order should not change the order of the QTouchEvent::touchPoints()
// Compositor event order should not change the order of the QTouchEvent::points()
// See QTBUG-77014
t->sendMotion(c, {49, 48}, 1);
t->sendMotion(c, {33, 32}, 0);