diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-04-27 09:28:43 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-04-28 14:42:25 (GMT) |
commit | 74d5d7a7d6e5433343eab38887064fc15a7c1250 (patch) | |
tree | f6c0db0c9c5a803f68c033991e0bccd7c1c78eca /tests/auto | |
parent | 4e3ba194fe2404de380fbe544f87773edd66f7b9 (diff) | |
download | Qt-74d5d7a7d6e5433343eab38887064fc15a7c1250.zip Qt-74d5d7a7d6e5433343eab38887064fc15a7c1250.tar.gz Qt-74d5d7a7d6e5433343eab38887064fc15a7c1250.tar.bz2 |
Fix compilation of tst_qwidget with some compilers.
Some compilers such as the Metroworks compiler do not like it when the
two pointers have different types so cast them to be the same.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index d493219..110a4e0 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -8790,8 +8790,8 @@ void tst_QWidget::toplevelLineEditFocus() #endif QTest::qWait(200); - QCOMPARE(QApplication::activeWindow(), &w); - QCOMPARE(QApplication::focusWidget(), &w); + QCOMPARE(QApplication::activeWindow(), (QWidget*)&w); + QCOMPARE(QApplication::focusWidget(), (QWidget*)&w); } QTEST_MAIN(tst_QWidget) |