summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/Api/qwebview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/qt/Api/qwebview.cpp')
-rw-r--r--WebKit/qt/Api/qwebview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebKit/qt/Api/qwebview.cpp b/WebKit/qt/Api/qwebview.cpp
index 64b7a90..31ee521 100644
--- a/WebKit/qt/Api/qwebview.cpp
+++ b/WebKit/qt/Api/qwebview.cpp
@@ -39,7 +39,7 @@ public:
QWebViewPrivate(QWebView *view)
: view(view)
, page(0)
- , renderHints(QPainter::TextAntialiasing)
+ , renderHints(QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform)
{
Q_ASSERT(view);
}
@@ -353,9 +353,9 @@ void QWebViewPrivate::detachCurrentPage()
// to destroy it.
if (page->d->client && page->d->client->isQWidgetClient())
- delete page->d->client;
+ page->d->client.clear();
- page->d->client = 0;
+ page->d->client.release();
// if the page was created by us, we own it and need to
// destroy it as well.
@@ -713,7 +713,7 @@ qreal QWebView::textSizeMultiplier() const
These hints are used to initialize QPainter before painting the Web page.
- QPainter::TextAntialiasing is enabled by default.
+ QPainter::TextAntialiasing and QPainter::SmoothPixmapTransform are enabled by default.
\note This property is not available on Symbian. However, the getter and
setter functions can still be used directly.