diff options
author | Bernhard Beschow <bbeschow@cs.tu-berlin.de> | 2009-12-14 17:43:05 +0100 |
---|---|---|
committer | Bernhard Beschow <bbeschow@cs.tu-berlin.de> | 2009-12-14 21:55:50 +0100 |
commit | 412e9b019ad5c868dd0c5573bf185a32cca31b7d (patch) | |
tree | 1a1ee0cddabefdd62e2bef39eef47e52d222e7f9 /src/webview.cpp | |
parent | rekonq 0.3.21 (diff) | |
download | rekonq-412e9b019ad5c868dd0c5573bf185a32cca31b7d.tar.xz |
factor out WebTab class from WebView
* it basically represents a tab in rekonq
* everything that happens within one tab should go here (wallet bar, find bar?)
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index b4b3cd70..25de0a98 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -59,17 +59,10 @@ WebView::WebView(QWidget* parent) : KWebView(parent, false) , m_page( new WebPage(this) ) - , m_progress(0) , m_mousePos(QPoint(0,0)) { setPage(m_page); - connect(m_page, SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&))); - connect(this, SIGNAL(loadProgress(int)), this, SLOT(updateProgress(int))); - connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool))); - - connect(this, SIGNAL(linkMiddleOrCtrlClicked(const KUrl &)), this, SLOT(loadInNewTab(const KUrl &)) ); - // download system connect(this, SIGNAL(linkShiftClicked(const KUrl &)), m_page, SLOT(downloadUrl(const KUrl &))); connect(m_page, SIGNAL(downloadRequested(const QNetworkRequest &)), m_page, SLOT(downloadRequest(const QNetworkRequest &))); @@ -81,36 +74,6 @@ WebView::~WebView() } -WebPage *WebView::page() -{ - return m_page; -} - - -KUrl WebView::url() const -{ - return KUrl(QWebView::url()); -} - - -int WebView::progress() -{ - return m_progress; -} - - -QString WebView::lastStatusBarText() const -{ - return m_statusBarText; -} - - -void WebView::setStatusBarText(const QString &string) -{ - m_statusBarText = string; -} - - void WebView::contextMenuEvent(QContextMenuEvent *event) { QWebHitTestResult result = page()->mainFrame()->hitTestContent(event->pos()); @@ -357,18 +320,6 @@ void WebView::search() } -void WebView::updateProgress(int p) -{ - m_progress = p; -} - - -void WebView::loadFinished(bool) -{ - m_progress = 0; -} - - void WebView::printFrame() { Application::instance()->mainWindow()->printRequested(page()->currentFrame()); @@ -423,9 +374,3 @@ void WebView::keyPressEvent(QKeyEvent *event) QWebView::keyPressEvent(event); } - - -void WebView::loadInNewTab(const KUrl &url) -{ - Application::instance()->loadUrl(url, Rekonq::NewCurrentTab); -} |