diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2011-09-20 07:59:46 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-21 08:24:11 +0200 |
commit | d372a9f3709aa76322e23c98eb5a853ba83e1e21 (patch) | |
tree | e556c3881d0a5152535dee32fa4edbcd5ab57c58 /src/testlib/qtest_gui.h | |
parent | a097825b2135ebfde45a122ea9252954f4ddcd5f (diff) |
testlib: Remove widgets dependency when only using gui
There's api in testlib that should only be available
if the application links against widgets.
Change-Id: I22e382c6710690866ed8ffed81bae27b548dc830
Reviewed-on: http://codereview.qt-project.org/5094
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jo Asplin <jo.asplin@nokia.com>
Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
Diffstat (limited to 'src/testlib/qtest_gui.h')
-rw-r--r-- | src/testlib/qtest_gui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testlib/qtest_gui.h b/src/testlib/qtest_gui.h index 77b19f0e21..89f63e25c6 100644 --- a/src/testlib/qtest_gui.h +++ b/src/testlib/qtest_gui.h @@ -74,6 +74,7 @@ QT_MODULE(Test) 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) @@ -82,6 +83,7 @@ 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(QPixmap const &t1, QPixmap const &t2, const char *actual, const char *expected, |