summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-30 02:08:59 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-30 02:08:59 +0200
commitec071abb4dfca0b0170d0e0a978300215ba1bc6a (patch)
treeae84ec5f1c009694ae2771e60fcd1f13d5ab0146 /src
parentFix (again and again) ftp handling (and errors in general) (diff)
downloadrekonq-ec071abb4dfca0b0170d0e0a978300215ba1bc6a.tar.xz
A tiny improvement in the error page, showing a fat icon.. :)
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 1c9910e2..ed2ca298 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -406,10 +406,20 @@ QString WebPage::errorPage(QNetworkReply *reply)
}
QString title = i18n("Error loading: %1", reply->url().path());
- QString msg = "<h1>" + reply->errorString() + "</h1>";
QString urlString = reply->url().toString( QUrl::RemoveUserInfo | QUrl::RemoveQuery );
- msg += "<h2>" + i18nc("%1=an URL, e.g.'kde.org'", "When connecting to: %1", urlString ) + "</h2>";
+ QString iconPath = QString("file://") + KIconLoader::global()->iconPath( "dialog-warning" , KIconLoader::Small );
+ iconPath.replace( QL1S("16"), QL1S("128") );
+
+ QString msg;
+ msg += "<table>";
+ msg += "<tr><td>";
+ msg += "<img src=\"" + iconPath + "\" />";
+ msg += "</td><td>";
+ msg += "<h1>" + reply->errorString() + "</h1>";
+ msg += "<h2>" + i18nc("%1=an URL, e.g.'kde.org'", "When connecting to: <b>%1</b>", urlString ) + "</h2>";
+ msg += "</td></tr></table>";
+
msg += "<ul><li>" + i18n("Check the address for errors such as <b>ww</b>.kde.org instead of <b>www</b>.kde.org");
msg += "</li><li>" + i18n("If the address is correct, try to check the network connection.") + "</li><li>" ;
msg += i18n("If your computer or network is protected by a firewall or proxy, make sure that rekonq is permitted to access the network.");