summaryrefslogtreecommitdiff
path: root/src/webtab.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-01-15 11:07:18 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-15 11:07:18 +0100
commit167c9c556147cc70ea0ccc8d1095903be52d4630 (patch)
tree0e46c42b36ee7bb3402001c3f7433b205f7ef674 /src/webtab.cpp
parentonly make labels for viewable elements (diff)
downloadrekonq-167c9c556147cc70ea0ccc8d1095903be52d4630.tar.xz
Rework on load/stop/reload action
Also clean up API, giving proper names to method updateActions --> updateHistoryActions browserTabLoading(bool) --> currentTabStateChanged() ... also workaround problem that m_progress is (yet) 0 or 100 when load started REVIEW:103651
Diffstat (limited to 'src/webtab.cpp')
-rw-r--r--src/webtab.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webtab.cpp b/src/webtab.cpp
index 9516f83c..27b0fe8a 100644
--- a/src/webtab.cpp
+++ b/src/webtab.cpp
@@ -86,6 +86,7 @@ WebTab::WebTab(QWidget *parent)
}
connect(m_webView, SIGNAL(loadProgress(int)), this, SLOT(updateProgress(int)));
+ connect(m_webView, SIGNAL(loadStarted()), this, SLOT(resetProgress()));
connect(m_webView, SIGNAL(titleChanged(const QString &)), this, SIGNAL(titleChanged(const QString &)));
// Session Manager
@@ -120,6 +121,12 @@ void WebTab::updateProgress(int p)
}
+void WebTab::resetProgress()
+{
+ m_progress = 1;
+}
+
+
bool WebTab::isPageLoading()
{
return m_progress != 0 && m_progress != 100;