summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-06-21 22:11:39 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-06-21 22:11:39 +0200
commit9501cf849628c5aeef669f12db87d43ed03c357a (patch)
treeceb5c24d0c17feb94414fb66b40eb0694fdbc1e7 /src/mainview.cpp
parentDeleting popup in empty msg (diff)
downloadrekonq-9501cf849628c5aeef669f12db87d43ed03c357a.tar.xz
New notifying system. Perhaps this should be default for
rekonq 0.2. Anyway, there are a lot of improvements needed. We'll see..
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 05a32e7d..75154528 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -371,7 +371,6 @@ WebView *MainView::newWebView(Rekonq::OpenType type)
// connecting webview with mainview
connect(webView, SIGNAL(loadStarted()), this, SLOT(webViewLoadStarted()));
-// connect(webView, SIGNAL(loadProgress(int)), this, SLOT(webViewLoadProgress(int)));
connect(webView, SIGNAL(loadFinished(bool)), this, SLOT(webViewLoadFinished(bool)));
connect(webView, SIGNAL(iconChanged()), this, SLOT(webViewIconChanged()));
connect(webView, SIGNAL(titleChanged(const QString &)), this, SLOT(webViewTitleChanged(const QString &)));
@@ -553,22 +552,6 @@ void MainView::webViewLoadStarted()
}
-// void MainView::webViewLoadProgress(int progress)
-// {
-// WebView *webView = qobject_cast<WebView*>(sender());
-// int index = webViewIndex(webView);
-// if (index != currentIndex() || index < 0)
-// {
-// return;
-// }
-//
-// double totalBytes = static_cast<double>(webView->page()->totalBytes() / 1024);
-//
-// QString message = i18n("Loading %1% (%2 %3)...", progress, totalBytes, QLatin1String("kB"));
-// emit showStatusBarMessage(message);
-// }
-
-
void MainView::webViewLoadFinished(bool ok)
{
WebView *webView = qobject_cast<WebView*>(sender());
@@ -591,9 +574,9 @@ void MainView::webViewLoadFinished(bool ok)
}
if (ok)
- emit showStatusBarMessage(i18n("Done"));
+ emit showStatusBarMessage(i18n("Done"), Rekonq::Success);
else
- emit showStatusBarMessage(i18n("Failed to load"));
+ emit showStatusBarMessage(i18n("Failed to load"), Rekonq::Error);
}