diff -r 5dc02b23752f -r 3e2da88830cd tests/auto/qprinter/tst_qprinter.cpp --- a/tests/auto/qprinter/tst_qprinter.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/tests/auto/qprinter/tst_qprinter.cpp Wed Aug 18 10:37:55 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 @@ -217,7 +219,6 @@ tst_QPrinter::~tst_QPrinter() { - } // initTestCase will be executed once before the first testfunction is executed. @@ -1056,3 +1057,9 @@ QTEST_MAIN(tst_QPrinter) #include "tst_qprinter.moc" + +#else //QT_NO_PRINTER + +QTEST_NOOP_MAIN + +#endif //QT_NO_PRINTER