test: fixed tst_qabstractitemview for qpa

Test uses QCursor::setPos(), which is broken for QPA.

Task-number: QTBUG-20753
Change-Id: Ibeb1278f46dc5dec081c19ba25dd83cc8390aef3
Reviewed-on: http://codereview.qt.nokia.com/2652
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
This commit is contained in:
Rohan McGovern 2011-08-05 10:30:55 +10:00 committed by Qt by Nokia
parent e95edf644e
commit 24fd1ae14d

View File

@ -1244,8 +1244,12 @@ void tst_QAbstractItemView::task200665_itemEntered()
QCursor::setPos( view.viewport()->mapToGlobal(rect.center()) );
QSignalSpy spy(&view, SIGNAL(entered(QModelIndex)));
view.verticalScrollBar()->setValue(view.verticalScrollBar()->maximum());
QCOMPARE(spy.count(), 1);
#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-20753 QCursor::setPos() is broken for QPA", Continue);
#endif
QCOMPARE(spy.count(), 1);
}
void tst_QAbstractItemView::task257481_emptyEditor()