From f7cabde3b757d606b4546080946ced207851bf0d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 15 Jul 2009 22:52:46 +0200 Subject: Going back to simpler QtWebKit. Seems more fast and stable, for now.. --- src/webview.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index f0aa6641..114a1be4 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -65,11 +65,12 @@ WebView::WebView(QWidget* parent) - : KWebView(parent) + : QWebView(parent) , m_page(new WebPage(this)) , m_progress(0) { setPage(m_page); + connect(page(), SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&))); connect(this, SIGNAL(loadProgress(int)), this, SLOT(setProgress(int))); connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished())); @@ -78,10 +79,10 @@ WebView::WebView(QWidget* parent) } -void WebView::setNewPage() -{ - setPage(new WebPage(this)); -} +// void WebView::setNewPage() +// { +// setPage(new WebPage(this)); +// } KUrl WebView::url() const @@ -102,10 +103,10 @@ int WebView::progress() const } -void WebView::load(const KUrl &url) -{ - QWebView::load(url); -} +// void WebView::load(const KUrl &url) +// { +// QWebView::load(url); +// } void WebView::setProgress(int progress) -- cgit v1.2.1