diff options
-rw-r--r-- | src/urlbar/listitem.cpp | 4 | ||||
-rw-r--r-- | src/urlbar/urlresolver.cpp | 3 |
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; } |