summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-31 11:31:59 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-31 11:31:59 +0200
commit010587f612ae2a4c5fe91dbf75bfdcab2480a83e (patch)
tree53da5e23697a936dd5d45410f45d7a35cc8fcb28
parentMerge commit 'refs/merge-requests/2282' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-010587f612ae2a4c5fe91dbf75bfdcab2480a83e.tar.xz
Update urlbar progress
-rw-r--r--src/urlbar/urlbar.cpp2
-rw-r--r--src/webtab.cpp1
-rw-r--r--src/webtab.h3
3 files changed, 6 insertions, 0 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 9edf7c6b..b297df1c 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -101,6 +101,8 @@ UrlBar::UrlBar(QWidget *parent)
_tab = qobject_cast<WebTab *>(parent);
+ connect(_tab, SIGNAL(loadProgressing()), this, SLOT(update()));
+
connect(_tab->view(), SIGNAL(urlChanged(const QUrl &)), this, SLOT(setQUrl(const QUrl &)));
connect(_tab->view(), SIGNAL(loadFinished(bool)), this, SLOT(loadFinished()));
connect(_tab->view(), SIGNAL(loadStarted()), this, SLOT(clearRightIcons()));
diff --git a/src/webtab.cpp b/src/webtab.cpp
index 47780a44..9e168d36 100644
--- a/src/webtab.cpp
+++ b/src/webtab.cpp
@@ -124,6 +124,7 @@ KUrl WebTab::url()
void WebTab::updateProgress(int p)
{
m_progress = p;
+ emit loadProgressing();
}
diff --git a/src/webtab.h b/src/webtab.h
index bc07a3e9..e34bbccf 100644
--- a/src/webtab.h
+++ b/src/webtab.h
@@ -67,6 +67,9 @@ private slots:
void createWalletBar(const QString &, const QUrl &);
void showRSSInfo(QPoint pos);
+signals:
+ void loadProgressing();
+
private:
WebView *_view;