summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-17 00:00:06 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-17 00:00:06 +0200
commit3177903052501c867fa4067e354bf1bc7babbc89 (patch)
treeb9f7529d03869df41dc4cdaf075f5abee660c786
parentRemoved pointers use in UrlResolver class (diff)
downloadrekonq-3177903052501c867fa4067e354bf1bc7babbc89.tar.xz
Implement about urls easy suggestions
-rw-r--r--src/urlbar/urlresolver.cpp18
1 files changed, 18 insertions, 0 deletions
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)
{