diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-09-18 12:54:44 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-09-18 12:54:44 (GMT) |
commit | 0e7e62eb6afbc1f20d08b837643009cec8eaacb9 (patch) | |
tree | 1eb5f9fb0194b8a9ffa1d9ab961a0ac68db7508a /tests/auto/qprinter/tst_qprinter.cpp | |
parent | b88bcd68a62ab8ed348bc698f7342346963bb7c0 (diff) | |
parent | 421e02d7b48b4a852a4aa1e6feb781a64f0981b4 (diff) | |
download | Qt-0e7e62eb6afbc1f20d08b837643009cec8eaacb9.zip Qt-0e7e62eb6afbc1f20d08b837643009cec8eaacb9.tar.gz Qt-0e7e62eb6afbc1f20d08b837643009cec8eaacb9.tar.bz2 |
Merge commit 'origin/4.6' into kinetic-declarativeui
Conflicts:
configure.exe
Diffstat (limited to 'tests/auto/qprinter/tst_qprinter.cpp')
-rw-r--r-- | tests/auto/qprinter/tst_qprinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qprinter/tst_qprinter.cpp b/tests/auto/qprinter/tst_qprinter.cpp index 77737ed..d6df94b 100644 --- a/tests/auto/qprinter/tst_qprinter.cpp +++ b/tests/auto/qprinter/tst_qprinter.cpp @@ -48,6 +48,7 @@ #include <qpagesetupdialog.h> #include <qpainter.h> #include <qprintdialog.h> +#include <qprinterinfo.h> #ifdef QT3_SUPPORT #include <q3paintdevicemetrics.h> #endif @@ -557,6 +558,8 @@ void tst_QPrinter::changingOutputFormat() void tst_QPrinter::outputFormatFromSuffix() { + if (QPrinterInfo::availablePrinters().size() == 0) + QSKIP("No printers available.", SkipAll); QPrinter p; QVERIFY(p.outputFormat() == QPrinter::NativeFormat); p.setOutputFileName("test.ps"); |