diff options
| author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-21 10:57:44 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-21 10:57:44 +0200 |
| commit | 5ef7c8a6a70875d4430752d146bdcb069605d71d (patch) | |
| tree | f6256640b6c46d7da221435803cae65326817ba2 /Source/WebKit/qt/Api/qwebframe.cpp | |
| parent | decad929f578d8db641febc8740649ca6c574638 (diff) | |
| download | qtwebkit-5ef7c8a6a70875d4430752d146bdcb069605d71d.tar.gz | |
Imported WebKit commit 356d83016b090995d08ad568f2d2c243aa55e831 (http://svn.webkit.org/repository/webkit/trunk@126147)
New snapshot including various build fixes for newer Qt 5
Diffstat (limited to 'Source/WebKit/qt/Api/qwebframe.cpp')
| -rw-r--r-- | Source/WebKit/qt/Api/qwebframe.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit/qt/Api/qwebframe.cpp b/Source/WebKit/qt/Api/qwebframe.cpp index 52b97382d..22e47c55d 100644 --- a/Source/WebKit/qt/Api/qwebframe.cpp +++ b/Source/WebKit/qt/Api/qwebframe.cpp @@ -93,7 +93,9 @@ #include <qevent.h> #include <qfileinfo.h> #include <qpainter.h> +#if HAVE(QTPRINTSUPPORT) #include <qprinter.h> +#endif #include <qregion.h> #include <qnetworkrequest.h> @@ -1427,6 +1429,7 @@ bool QWebFrame::event(QEvent *e) */ void QWebFrame::print(QPrinter *printer) const { +#if HAVE(QTPRINTSUPPORT) QPainter painter; if (!painter.begin(printer)) return; @@ -1514,6 +1517,7 @@ void QWebFrame::print(QPrinter *printer) const } printContext.end(); +#endif // HAVE(PRINTSUPPORT) } #endif // QT_NO_PRINTER |
