summaryrefslogtreecommitdiffstats
path: root/tests/auto/qprinter/tst_qprinter.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@nokia.com>2010-05-25 15:49:43 (GMT)
committerLiang Qi <liang.qi@nokia.com>2010-05-25 15:49:43 (GMT)
commitafe3c2e741b372f88bf37c1df95ad30b468931e8 (patch)
tree4241b4e648efbea9fba277f2f26ad5e8e87a9fd4 /tests/auto/qprinter/tst_qprinter.cpp
parentb105d39e12c22321e06a6c4d9e8e05aaf92036bd (diff)
downloadQt-afe3c2e741b372f88bf37c1df95ad30b468931e8.zip
Qt-afe3c2e741b372f88bf37c1df95ad30b468931e8.tar.gz
Qt-afe3c2e741b372f88bf37c1df95ad30b468931e8.tar.bz2
Fix the compilation for tst_qabstractprintdialog and tst_qprinter on symbian.
Diffstat (limited to 'tests/auto/qprinter/tst_qprinter.cpp')
-rw-r--r--tests/auto/qprinter/tst_qprinter.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/auto/qprinter/tst_qprinter.cpp b/tests/auto/qprinter/tst_qprinter.cpp
index b1ff425..e52e1b5 100644
--- a/tests/auto/qprinter/tst_qprinter.cpp
+++ b/tests/auto/qprinter/tst_qprinter.cpp
@@ -64,11 +64,13 @@
Q_DECLARE_METATYPE(QRect)
-
+QT_FORWARD_DECLARE_CLASS(QPrinter)
//TESTED_CLASS=
//TESTED_FILES=
+#ifndef QT_NO_PRINTER
+
class tst_QPrinter : public QObject
{
Q_OBJECT
@@ -215,7 +217,6 @@ tst_QPrinter::tst_QPrinter()
tst_QPrinter::~tst_QPrinter()
{
-
}
// initTestCase will be executed once before the first testfunction is executed.
@@ -1007,3 +1008,9 @@ void tst_QPrinter::taskQTBUG4497_reusePrinterOnDifferentFiles()
QTEST_MAIN(tst_QPrinter)
#include "tst_qprinter.moc"
+
+#else //QT_NO_PRINTER
+
+QTEST_NOOP_MAIN
+
+#endif //QT_NO_PRINTER