From 3177903052501c867fa4067e354bf1bc7babbc89 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 17 May 2010 00:00:06 +0200 Subject: Implement about urls easy suggestions --- src/urlbar/urlresolver.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index 5f4f86a3..4313d569 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -104,6 +104,24 @@ UrlSearchList UrlResolver::orderedSearchItems() // catch first 3 results from the two resulting lists :) UrlSearchList list; + + if( _typedString == QL1S("about:") ) + { + UrlSearchItem home(UrlSearchItem::Browse, KUrl("about:home"), QL1S("home") ); + list << home; + UrlSearchItem favs(UrlSearchItem::Browse, KUrl("about:favorites"), QL1S("favorites") ); + list << favs; + UrlSearchItem clos(UrlSearchItem::Browse, KUrl("about:closedTabs"), QL1S("closed tabs") ); + list << clos; + UrlSearchItem book(UrlSearchItem::Browse, KUrl("about:bookmarks"), QL1S("bookmarks") ); + list << book; + UrlSearchItem hist(UrlSearchItem::Browse, KUrl("about:history"), QL1S("history") ); + list << hist; + UrlSearchItem down(UrlSearchItem::Browse, KUrl("about:downloads"), QL1S("downloads") ); + list << down; + + return list; + } if(_browseRegexp.indexIn(_typedString) != -1) { -- cgit v1.2.1