Fix a couple more uses of QWheelEvent constructors in tests

Change-Id: I0c9f08a243a823aff0bf21dfc14f78680e95d80f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Shawn Rutledge 2019-07-12 14:58:54 +02:00
parent 7d29807296
commit 2d2e16d3ef
2 changed files with 2 additions and 2 deletions

View File

@ -1510,7 +1510,7 @@ void tst_QDoubleSpinBox::wheelEvents()
spinBox.setStyle(style.data()); spinBox.setStyle(style.data());
QWheelEvent event(QPointF(), QPointF(), QPoint(), angleDelta, QWheelEvent event(QPointF(), QPointF(), QPoint(), angleDelta,
Qt::NoButton, modifier, Qt::NoScrollPhase, source); Qt::NoButton, modifier, Qt::NoScrollPhase, false, source);
for (int expected : expectedValues) { for (int expected : expectedValues) {
qApp->sendEvent(&spinBox, &event); qApp->sendEvent(&spinBox, &event);
QCOMPARE(spinBox.value(), expected); QCOMPARE(spinBox.value(), expected);

View File

@ -1464,7 +1464,7 @@ void tst_QSpinBox::wheelEvents()
spinBox.setStyle(style.data()); spinBox.setStyle(style.data());
QWheelEvent event(QPointF(), QPointF(), QPoint(), angleDelta, QWheelEvent event(QPointF(), QPointF(), QPoint(), angleDelta,
Qt::NoButton, modifier, Qt::NoScrollPhase, source); Qt::NoButton, modifier, Qt::NoScrollPhase, false, source);
for (int expected : expectedValues) { for (int expected : expectedValues) {
qApp->sendEvent(&spinBox, &event); qApp->sendEvent(&spinBox, &event);
QCOMPARE(spinBox.value(), expected); QCOMPARE(spinBox.value(), expected);