summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdoublespinbox
diff options
context:
space:
mode:
authorJo Asplin <jo.asplin@nokia.com>2011-09-15 13:09:44 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-23 00:34:26 +0200
commit629295fcf7c5f7f38220aa5a32820493c9d68280 (patch)
treeb99f7ffd17b0fa6a9ef7a9456aaa3e4225b7553b /tests/auto/qdoublespinbox
parent51589e834e086de93a121a1c628c3492d88a15a7 (diff)
Cast back to QWindow *
Tests for widgets should select the QWidget * version of overloaded QTestLib functions rather than the QWindow * version. Change-Id: I8b540b630758c0e7ba7ed88aba45d624c83ff378 Reviewed-on: http://codereview.qt-project.org/4977 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
Diffstat (limited to 'tests/auto/qdoublespinbox')
-rw-r--r--tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp b/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp
index e0b6dc98a5..967787715b 100644
--- a/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp
+++ b/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp
@@ -1080,7 +1080,7 @@ void tst_QDoubleSpinBox::taskQTBUG_5008_textFromValueAndValidate()
QTRY_COMPARE(static_cast<QWidget *>(&spinbox), QApplication::activeWindow());
QCOMPARE(spinbox.text(), spinbox.locale().toString(spinbox.value()));
spinbox.lineEdit()->setCursorPosition(2); //just after the first thousand separator
- QTest::keyClick(static_cast<QWindow *>(0), Qt::Key_0); // let's insert a 0
+ QTest::keyClick(static_cast<QWidget *>(0), Qt::Key_0); // let's insert a 0
QCOMPARE(spinbox.value(), 10000.);
spinbox.clearFocus(); //make sure the value is correctly formatted
QCOMPARE(spinbox.text(), spinbox.locale().toString(spinbox.value()));