diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2012-06-26 19:18:07 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-26 22:39:46 +0200 |
commit | a2e65bc4d42ed3f361cda9e28132c32040d8c599 (patch) | |
tree | de20834dfe8e8693dd08be41ff8daab4fbca1052 | |
parent | c508030c4a75c01939382dbbab221be1076ea0f7 (diff) |
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>
-rw-r--r-- | src/testlib/qtest_gui.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/testlib/qtest_gui.h b/src/testlib/qtest_gui.h index 684b876fcd..5415b64158 100644 --- a/src/testlib/qtest_gui.h +++ b/src/testlib/qtest_gui.h @@ -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, |