summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlineedit/tst_qlineedit.cpp
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/qlineedit/tst_qlineedit.cpp
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/qlineedit/tst_qlineedit.cpp')
-rw-r--r--tests/auto/qlineedit/tst_qlineedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlineedit/tst_qlineedit.cpp b/tests/auto/qlineedit/tst_qlineedit.cpp
index 7c8a9751cd..891a6071fc 100644
--- a/tests/auto/qlineedit/tst_qlineedit.cpp
+++ b/tests/auto/qlineedit/tst_qlineedit.cpp
@@ -3704,7 +3704,7 @@ void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut()
le.setFocus();
QTRY_VERIFY(le.hasFocus());
- QTest::keyClick(static_cast<QWindow *>(0), Qt::Key_P);
+ QTest::keyClick(static_cast<QWidget *>(0), Qt::Key_P);
QCOMPARE(spy.count(), 1);
}