summaryrefslogtreecommitdiffstats
path: root/tests/auto/qrawfont
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-04-18 07:51:13 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-04-18 08:02:20 (GMT)
commit5a35876226939167f664b826807d511a81167b24 (patch)
treecc98ea4f71098bad118e01279bff5c00fef9a15b /tests/auto/qrawfont
parent1348f4f0853155182d2ea5836902794d1e43980c (diff)
downloadQt-5a35876226939167f664b826807d511a81167b24.zip
Qt-5a35876226939167f664b826807d511a81167b24.tar.gz
Qt-5a35876226939167f664b826807d511a81167b24.tar.bz2
Make sure #ifdef'd tests still have main() function
Otherwise it won't link on QWS Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qrawfont')
-rw-r--r--tests/auto/qrawfont/tst_qrawfont.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/qrawfont/tst_qrawfont.cpp b/tests/auto/qrawfont/tst_qrawfont.cpp
index c20b41d..3aa4006 100644
--- a/tests/auto/qrawfont/tst_qrawfont.cpp
+++ b/tests/auto/qrawfont/tst_qrawfont.cpp
@@ -44,12 +44,11 @@
#include <qrawfont.h>
#include <private/qrawfont_p.h>
-#if !defined(QT_NO_RAWFONT)
-
class tst_QRawFont: public QObject
{
Q_OBJECT
+#if !defined(QT_NO_RAWFONT)
private slots:
void invalidRawFont();
@@ -92,8 +91,10 @@ private slots:
void unsupportedWritingSystem_data();
void unsupportedWritingSystem();
+#endif // QT_NO_RAWFONT
};
+#if !defined(QT_NO_RAWFONT)
Q_DECLARE_METATYPE(QFont::HintingPreference)
Q_DECLARE_METATYPE(QFont::Style)
Q_DECLARE_METATYPE(QFont::Weight)
@@ -806,7 +807,8 @@ void tst_QRawFont::unsupportedWritingSystem()
fontDatabase.removeApplicationFont(id);
}
+#endif // QT_NO_RAWFONT
+
QTEST_MAIN(tst_QRawFont)
#include "tst_qrawfont.moc"
-#endif // QT_NO_RAWFONT