From 5ef7c8a6a70875d4430752d146bdcb069605d71d Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 21 Aug 2012 10:57:44 +0200 Subject: Imported WebKit commit 356d83016b090995d08ad568f2d2c243aa55e831 (http://svn.webkit.org/repository/webkit/trunk@126147) New snapshot including various build fixes for newer Qt 5 --- Source/WebKit/qt/Api/qwebview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/WebKit/qt/Api/qwebview.cpp') 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 } -- cgit v1.2.1