diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-13 12:22:41 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-13 12:29:45 (GMT) |
commit | aa784453478ebff299a27eec1683001d2e5084bc (patch) | |
tree | ed566c10c633c945ac1b0ebce57953365e0a1501 | |
parent | d1d737d8497b6a0d80e16c81ef20b9eac6ee72b6 (diff) | |
download | Qt-aa784453478ebff299a27eec1683001d2e5084bc.zip Qt-aa784453478ebff299a27eec1683001d2e5084bc.tar.gz Qt-aa784453478ebff299a27eec1683001d2e5084bc.tar.bz2 |
Fix QAbstractSlider test
Commit 46a3e518b3070c changed the behaviour of a wheel event of
a different orientation.
It works now no matter where the event was.
Reviewed-by: Denis
Reviewed-by: Thierry
-rw-r--r-- | tests/auto/qabstractslider/tst_qabstractslider.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qabstractslider/tst_qabstractslider.cpp b/tests/auto/qabstractslider/tst_qabstractslider.cpp index d9574df..ee1ba19 100644 --- a/tests/auto/qabstractslider/tst_qabstractslider.cpp +++ b/tests/auto/qabstractslider/tst_qabstractslider.cpp @@ -742,11 +742,9 @@ void tst_QAbstractSlider::wheelEvent_data() << 1 // delta << int(Qt::Horizontal) // orientation of slider << int(Qt::Vertical) // orientation of wheel - << 0 // expected position after + << 1 // expected position after << QPoint(1,1); - // Scrolling in a slider of a different orientation than the wheel works - // if the mouse pointer is within the widget's rect QTest::newRow("Different orientation2")<< 0 // initial position << 0 // minimum << 100 // maximum |