summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-30 00:39:05 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-30 00:39:05 +0200
commitda8675af551d2e8bab82f638007a966c1c9bb8e2 (patch)
treecda072c6236389de358d3c56e30c62796cc7859d /src
parentFixing tab switch behavior. (diff)
downloadrekonq-da8675af551d2e8bab82f638007a966c1c9bb8e2.tar.xz
Fixed wrong pointed out text in the Browse ListItem
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/listitem.cpp4
-rw-r--r--src/urlbar/urlresolver.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp
index 07b7c99f..d69bdd03 100644
--- a/src/urlbar/listitem.cpp
+++ b/src/urlbar/listitem.cpp
@@ -391,11 +391,13 @@ BrowseListItem::BrowseListItem(const UrlSearchItem &item, const QString &text, Q
{
QString url = text;
+ kDebug() << text;
+
QHBoxLayout *hLayout = new QHBoxLayout;
hLayout->setSpacing(4);
hLayout->addWidget( new IconLabel(item.url.url(), this) );
- hLayout->addWidget( new TextLabel( QL1S("Browse <i>http://<b>") + url.remove("http://") + QL1S("</b></i>"), QString(), this) );
+ hLayout->addWidget( new TextLabel(item.url.url(), text, this) );
hLayout->addWidget( new TypeIconLabel(item.type, this) );
setLayout(hLayout);
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 4f9376f5..b53b6b42 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -170,9 +170,8 @@ UrlSearchList UrlResolver::qurlFromUserInputResolution()
QUrl urlFromUserInput = QUrl::fromUserInput(url2);
if(urlFromUserInput.isValid())
{
- KUrl gUrl(urlFromUserInput);
QString gTitle = i18nc("Browse a website", "Browse");
- UrlSearchItem gItem(UrlSearchItem::Browse, gUrl, gTitle);
+ UrlSearchItem gItem(UrlSearchItem::Browse, urlFromUserInput, gTitle);
list << gItem;
}