summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-29 00:22:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-29 00:22:14 +0200
commitd64b60a884452202d8d7dd5e4a13fcdcedbb6265 (patch)
treea1e04a251645179b11fdde71f5a1ecf70e906b18 /src/webview.cpp
parentMerge branch 'PrivateColor' (diff)
downloadrekonq-d64b60a884452202d8d7dd5e4a13fcdcedbb6265.tar.xz
Simplifying a bit web load progress process structure
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index fec96edc..654efc29 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -65,13 +65,10 @@
WebView::WebView(QWidget* 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()));
}
@@ -98,18 +95,6 @@ QString WebView::lastStatusBarText() const
}
-int WebView::progress() const
-{
- return m_progress;
-}
-
-
-void WebView::setProgress(int progress)
-{
- m_progress = progress;
-}
-
-
void WebView::setStatusBarText(const QString &string)
{
m_statusBarText = string;
@@ -286,17 +271,6 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
}
-void WebView::loadFinished()
-{
- if (m_progress != 100)
- {
- kWarning() << "Received finished signal while progress is still:" << progress()
- << "Url:" << url();
- }
- m_progress = 0;
-}
-
-
void WebView::keyPressEvent(QKeyEvent *event)
{
if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_Tab))