From 74d5d7a7d6e5433343eab38887064fc15a7c1250 Mon Sep 17 00:00:00 2001 From: Jason Barron Date: Mon, 27 Apr 2009 11:28:43 +0200 Subject: 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. --- tests/auto/qwidget/tst_qwidget.cpp | 4 ++-- 1 file 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) -- cgit v0.12