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:
parent
7d29807296
commit
2d2e16d3ef
@ -1510,7 +1510,7 @@ void tst_QDoubleSpinBox::wheelEvents()
|
||||
spinBox.setStyle(style.data());
|
||||
|
||||
QWheelEvent event(QPointF(), QPointF(), QPoint(), angleDelta,
|
||||
Qt::NoButton, modifier, Qt::NoScrollPhase, source);
|
||||
Qt::NoButton, modifier, Qt::NoScrollPhase, false, source);
|
||||
for (int expected : expectedValues) {
|
||||
qApp->sendEvent(&spinBox, &event);
|
||||
QCOMPARE(spinBox.value(), expected);
|
||||
|
@ -1464,7 +1464,7 @@ void tst_QSpinBox::wheelEvents()
|
||||
spinBox.setStyle(style.data());
|
||||
|
||||
QWheelEvent event(QPointF(), QPointF(), QPoint(), angleDelta,
|
||||
Qt::NoButton, modifier, Qt::NoScrollPhase, source);
|
||||
Qt::NoButton, modifier, Qt::NoScrollPhase, false, source);
|
||||
for (int expected : expectedValues) {
|
||||
qApp->sendEvent(&spinBox, &event);
|
||||
QCOMPARE(spinBox.value(), expected);
|
||||
|
Loading…
Reference in New Issue
Block a user