summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/Api/qwebview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/qt/Api/qwebview.cpp')
-rw-r--r--Source/WebKit/qt/Api/qwebview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebKit/qt/Api/qwebview.cpp b/Source/WebKit/qt/Api/qwebview.cpp
index f90790f0c..036c8ea2e 100644
--- a/Source/WebKit/qt/Api/qwebview.cpp
+++ b/Source/WebKit/qt/Api/qwebview.cpp
@@ -30,7 +30,9 @@
#include "qbitmap.h"
#include "qevent.h"
#include "qpainter.h"
+#if HAVE(QTPRINTSUPPORT)
#include "qprinter.h"
+#endif
#include "qdir.h"
#include "qfile.h"
#ifndef QT_NO_ACCESSIBILITY
@@ -746,7 +748,7 @@ bool QWebView::event(QEvent *e)
*/
void QWebView::print(QPrinter *printer) const
{
-#ifndef QT_NO_PRINTER
+#if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT)
page()->mainFrame()->print(printer);
#endif
}