From 010587f612ae2a4c5fe91dbf75bfdcab2480a83e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 31 May 2010 11:31:59 +0200 Subject: Update urlbar progress --- src/urlbar/urlbar.cpp | 2 ++ src/webtab.cpp | 1 + src/webtab.h | 3 +++ 3 files changed, 6 insertions(+) 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(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; -- cgit v1.2.1