summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-24 15:28:15 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-24 15:28:15 +0200
commitff6acd7ee07b4cf41392a522b96d044dca5b6d10 (patch)
tree034de2157975554a8ed85bdddfd623b99813712b /src/webview.cpp
parentUpdated TODO (diff)
downloadrekonq-ff6acd7ee07b4cf41392a522b96d044dca5b6d10.tar.xz
Pano "create new windowd" bug fix and other little web classes
improvements
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index f73c38b5..101b6e06 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -73,9 +73,14 @@ WebView::WebView(QWidget* parent)
}
-WebPage *WebView::page() const
+WebPage *WebView::page()
{
- return qobject_cast<WebPage *>(QWebView::page());
+ if(!m_page)
+ {
+ m_page = new WebPage();
+ setPage(m_page);
+ }
+ return m_page;
}