Retire QTest::pixmapsAreEqual().
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 19 Dec 2011 05:22:51 +0000 (15:22 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Dec 2011 05:17:42 +0000 (06:17 +0100)
commit85a77cd5c8f4a9a2e71676ff7b600ba891983115
tree42757b4bcd9b8f9702e11fbf70e8ad573d49d1b2
parent1749fef3c5c1dda98c6ea32e0ac17202892fc9fe
Retire QTest::pixmapsAreEqual().

QTest::pixmapsAreEqual() was left in the Qt4 API for compatibility with
some old tests written for Qt3.  QCOMPARE() is the preferred way to
compare QPixmaps and provides superior diagnostic output when a
comparison fails.

This commit removes QTest::pixmapsAreEqual() from the testlib API and
replaces the last few remaining calls with QCOMPARE.

Change-Id: I051c0e7d3bda072855fcd262d82e8e540619233b
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
dist/changes-5.0.0
src/testlib/qtest_gui.h
tests/auto/corelib/io/qdatastream/tst_qdatastream.cpp
tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
tests/auto/widgets/styles/qstyle/tst_qstyle.cpp