Fix build with --no-feature-wheelevent
tst_QListView::horizontalScrollingByVerticalWheelEvents failed to compile with this qmake argument. Change-Id: I35dd4ad4c9ee92c06c94b21dd7325aee00fc98d4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>bb10
parent
b206d1c808
commit
4180e6be88
|
|
@ -2419,6 +2419,7 @@ void tst_QListView::taskQTBUG_39902_mutualScrollBars()
|
|||
|
||||
void tst_QListView::horizontalScrollingByVerticalWheelEvents()
|
||||
{
|
||||
#if QT_CONFIG(wheelevent)
|
||||
QListView lv;
|
||||
lv.setWrapping(true);
|
||||
|
||||
|
|
@ -2460,6 +2461,9 @@ void tst_QListView::horizontalScrollingByVerticalWheelEvents()
|
|||
int vValue = lv.verticalScrollBar()->value();
|
||||
QApplication::sendEvent(lv.viewport(), &wheelDownEvent);
|
||||
QVERIFY(lv.verticalScrollBar()->value() > vValue);
|
||||
#else
|
||||
QSKIP("Built with --no-feature-wheelevent");
|
||||
#endif
|
||||
}
|
||||
|
||||
void tst_QListView::taskQTBUG_7232_AllowUserToControlSingleStep()
|
||||
|
|
|
|||
Loading…
Reference in New Issue