tests/auto/qprinter/tst_qprinter.cpp
changeset 29 b72c6db6890b
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
25:e24348a560a6 29:b72c6db6890b
    62 #include <windows.h>
    62 #include <windows.h>
    63 #endif
    63 #endif
    64 
    64 
    65 Q_DECLARE_METATYPE(QRect)
    65 Q_DECLARE_METATYPE(QRect)
    66 
    66 
    67 
    67 QT_FORWARD_DECLARE_CLASS(QPrinter)
    68 
    68 
    69 //TESTED_CLASS=
    69 //TESTED_CLASS=
    70 //TESTED_FILES=
    70 //TESTED_FILES=
       
    71 
       
    72 #ifndef QT_NO_PRINTER
    71 
    73 
    72 class tst_QPrinter : public QObject
    74 class tst_QPrinter : public QObject
    73 {
    75 {
    74     Q_OBJECT
    76     Q_OBJECT
    75 
    77 
   213 {
   215 {
   214 }
   216 }
   215 
   217 
   216 tst_QPrinter::~tst_QPrinter()
   218 tst_QPrinter::~tst_QPrinter()
   217 {
   219 {
   218 
       
   219 }
   220 }
   220 
   221 
   221 // initTestCase will be executed once before the first testfunction is executed.
   222 // initTestCase will be executed once before the first testfunction is executed.
   222 void tst_QPrinter::initTestCase()
   223 void tst_QPrinter::initTestCase()
   223 {
   224 {
  1005     QCOMPARE(file1.readAll(), file2.readAll());
  1006     QCOMPARE(file1.readAll(), file2.readAll());
  1006 }
  1007 }
  1007 
  1008 
  1008 QTEST_MAIN(tst_QPrinter)
  1009 QTEST_MAIN(tst_QPrinter)
  1009 #include "tst_qprinter.moc"
  1010 #include "tst_qprinter.moc"
       
  1011 
       
  1012 #else //QT_NO_PRINTER
       
  1013 
       
  1014 QTEST_NOOP_MAIN
       
  1015 
       
  1016 #endif //QT_NO_PRINTER