summaryrefslogtreecommitdiffstats
path: root/tools/testcon/docuwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testcon/docuwindow.cpp')
-rw-r--r--tools/testcon/docuwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testcon/docuwindow.cpp b/tools/testcon/docuwindow.cpp
index cb6adfd..3a8a413 100644
--- a/tools/testcon/docuwindow.cpp
+++ b/tools/testcon/docuwindow.cpp
@@ -143,6 +143,9 @@ void DocuWindow::save()
void DocuWindow::print()
{
+#ifdef QT_NO_PRINTER
+ Q_UNIMPLEMENTED();
+#else
QPrinter printer;
if (printer.printerName().isEmpty()) {
statusBar()->showMessage(tr("No printer installed"), 2000);
@@ -156,6 +159,7 @@ void DocuWindow::print()
}
browser->document()->print(&printer);
+#endif
}
QT_END_NAMESPACE