Fix QCOMPARE for QIcon in QtGui

There's no need of QtWidgets for using QCOMPARE on two QIcons, as
QIcon lives in QtGui.

Change-Id: I40c3d4aeb15fb95876449383d9e2dd1ad39aa5f9
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Giuseppe D'Angelo 2012-06-26 19:18:07 +01:00 committed by Qt by Nokia
parent c508030c4a
commit a2e65bc4d4

View File

@ -77,7 +77,6 @@ QT_BEGIN_NAMESPACE
namespace QTest
{
#ifdef QT_WIDGETS_LIB
template<>
inline bool qCompare(QIcon const &t1, QIcon const &t2, const char *actual, const char *expected,
const char *file, int line)
@ -86,7 +85,6 @@ inline bool qCompare(QIcon const &t1, QIcon const &t2, const char *actual, const
return qCompare<void *>(*reinterpret_cast<void * const *>(&t1),
*reinterpret_cast<void * const *>(&t2), actual, expected, file, line);
}
#endif
template<>
inline bool qCompare(QImage const &t1, QImage const &t2,