summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-01-31 21:14:59 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2022-02-01 11:02:18 +0100
commitdc846e8e7c03c967319428fd286cf95cf3bf2d34 (patch)
treec8c5e92a433bf8b9b66f458f13b66206f698a0d1 /tests
parent0b867983d110d05a5e8befc57f889ddef60868dc (diff)
downloadqtwayland-dc846e8e7c03c967319428fd286cf95cf3bf2d34.tar.gz
Stop using soon-to-be-deprecated QMouseEvent constructor
We need to provide globalPosition rather than letting QMouseEvent possibly fill it from QCursor::pos(). Pick-to: 6.3 Change-Id: I5313439512ce59608fe18554edc40d332df5ec17 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/compositor/compositor/testseat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/compositor/compositor/testseat.cpp b/tests/auto/compositor/compositor/testseat.cpp
index 38227872..f81ec872 100644
--- a/tests/auto/compositor/compositor/testseat.cpp
+++ b/tests/auto/compositor/compositor/testseat.cpp
@@ -49,7 +49,8 @@ bool TestSeat::isOwner(QInputEvent *event) const
QList<QMouseEvent *> TestSeat::createMouseEvents(int count)
{
for (int i = 0; i < count; i++) {
- m_events.append(new QMouseEvent(QEvent::MouseMove, QPointF(10 + i, 10 + i), Qt::NoButton, Qt::NoButton, Qt::NoModifier));
+ m_events.append(new QMouseEvent(QEvent::MouseMove, QPointF(10 + i, 10 + i),
+ QPointF(10 + i, 10 + i), Qt::NoButton, Qt::NoButton, Qt::NoModifier));
}
return m_events;
}