From 833a43d56c644b2201643b1e7593b0ee86d0d258 Mon Sep 17 00:00:00 2001 From: John Layt Date: Thu, 13 Mar 2014 20:24:16 +0100 Subject: 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 --- tests/auto/printsupport/kernel/qprintdevice/tst_qprintdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto') 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) -- cgit v1.2.3