summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2014-03-13 20:24:16 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 13:46:26 +0100
commit833a43d56c644b2201643b1e7593b0ee86d0d258 (patch)
tree9b41ec276f7a3a1fb6352c493e774597276a8321 /tests/auto
parent69e9b12001be08fe2b3f2c2def0ca3468d83b675 (diff)
QtPrintSupport - Fix QT_NO_PRINTER build
Fix the QT_NO_PRINTER build for issues that have accumulated over last few months, and in the new changes already approved. Change-Id: I9aed21dee861837fd1a68a96692c873a4f5be293 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/printsupport/kernel/qprintdevice/tst_qprintdevice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/printsupport/kernel/qprintdevice/tst_qprintdevice.cpp b/tests/auto/printsupport/kernel/qprintdevice/tst_qprintdevice.cpp
index 6d2fe2cd53..1064b18168 100644
--- a/tests/auto/printsupport/kernel/qprintdevice/tst_qprintdevice.cpp
+++ b/tests/auto/printsupport/kernel/qprintdevice/tst_qprintdevice.cpp
@@ -56,6 +56,7 @@ private slots:
void tst_QPrintDevice::basics()
{
+#ifndef QT_NO_PRINTER
QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get();
if (!ps)
QSKIP("Could not load platform plugin");
@@ -102,6 +103,7 @@ void tst_QPrintDevice::basics()
printDevice.supportedColorModes();
printDevice.supportedMimeTypes();
}
+#endif // QT_NO_PRINTER
}
QTEST_MAIN(tst_QPrintDevice)