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:
parent
c508030c4a
commit
a2e65bc4d4
@ -77,7 +77,6 @@ QT_BEGIN_NAMESPACE
|
|||||||
namespace QTest
|
namespace QTest
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef QT_WIDGETS_LIB
|
|
||||||
template<>
|
template<>
|
||||||
inline bool qCompare(QIcon const &t1, QIcon const &t2, const char *actual, const char *expected,
|
inline bool qCompare(QIcon const &t1, QIcon const &t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
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),
|
return qCompare<void *>(*reinterpret_cast<void * const *>(&t1),
|
||||||
*reinterpret_cast<void * const *>(&t2), actual, expected, file, line);
|
*reinterpret_cast<void * const *>(&t2), actual, expected, file, line);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
inline bool qCompare(QImage const &t1, QImage const &t2,
|
inline bool qCompare(QImage const &t1, QImage const &t2,
|
||||||
|
Loading…
Reference in New Issue
Block a user