From ec071abb4dfca0b0170d0e0a978300215ba1bc6a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 30 Apr 2010 02:08:59 +0200 Subject: A tiny improvement in the error page, showing a fat icon.. :) --- src/webpage.cpp | 14 ++++++++++++-- 1 file 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 = "

" + reply->errorString() + "

"; QString urlString = reply->url().toString( QUrl::RemoveUserInfo | QUrl::RemoveQuery ); - msg += "

" + i18nc("%1=an URL, e.g.'kde.org'", "When connecting to: %1", urlString ) + "

"; + QString iconPath = QString("file://") + KIconLoader::global()->iconPath( "dialog-warning" , KIconLoader::Small ); + iconPath.replace( QL1S("16"), QL1S("128") ); + + QString msg; + msg += ""; + msg += "
"; + msg += ""; + msg += ""; + msg += "

" + reply->errorString() + "

"; + msg += "

" + i18nc("%1=an URL, e.g.'kde.org'", "When connecting to: %1", urlString ) + "

"; + msg += "
"; + msg += "