diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-15 11:07:18 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-15 11:07:18 +0100 |
commit | 167c9c556147cc70ea0ccc8d1095903be52d4630 (patch) | |
tree | 0e46c42b36ee7bb3402001c3f7433b205f7ef674 /src/webtab.cpp | |
parent | only make labels for viewable elements (diff) | |
download | rekonq-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.cpp | 7 |
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; |