diff -r e24348a560a6 -r b72c6db6890b tests/auto/qprinter/tst_qprinter.cpp --- a/tests/auto/qprinter/tst_qprinter.cpp Fri Jun 11 14:24:45 2010 +0300 +++ b/tests/auto/qprinter/tst_qprinter.cpp Wed Jun 23 19:07:03 2010 +0300 @@ -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() { - } // initTestCase will be executed once before the first testfunction is executed. @@ -1007,3 +1008,9 @@ QTEST_MAIN(tst_QPrinter) #include "tst_qprinter.moc" + +#else //QT_NO_PRINTER + +QTEST_NOOP_MAIN + +#endif //QT_NO_PRINTER