diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-06-16 10:18:40 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-06-16 10:18:40 (GMT) |
commit | bc4c5a2d9c5d3841948bc4443f2229d8d6ec0e95 (patch) | |
tree | 2200588b51404ec8d71f2e4b1ff6def8ac7a858d /tests/auto | |
parent | 45d9575a8c680206cdea0519b03996b6b8085294 (diff) | |
download | Qt-bc4c5a2d9c5d3841948bc4443f2229d8d6ec0e95.zip Qt-bc4c5a2d9c5d3841948bc4443f2229d8d6ec0e95.tar.gz Qt-bc4c5a2d9c5d3841948bc4443f2229d8d6ec0e95.tar.bz2 |
Fix autoScroll implementation
The scrolling should not be calculated inside the paint event, this
leads to some incorrect behaviour. It is now calculated separately when
needed.
Patch actually written by Alexis, and I reviewed it.
Task-number: QTBUG-11127
Reviewed-by: Alexis Ménard
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp index 3143580..a55b42e 100644 --- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp +++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp @@ -396,7 +396,6 @@ void tst_qdeclarativetextinput::positionAt() #endif // Check without autoscroll... - QEXPECT_FAIL("", "QTBUG-11127", Abort); textinputObject->setAutoScroll(false); pos = textinputObject->positionAt(textinputObject->width()/2); diff = abs(fm.width(textinputObject->text().left(pos))-textinputObject->width()/2); |