diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2010-07-21 17:13:17 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2010-07-21 17:13:17 +0200 |
commit | 29222348be2aea93de9d9fc937996d0b7474308d (patch) | |
tree | ce2f602c81bee4f4b737ee71468368ca6114de3e /src/urlbar/urlresolver.cpp | |
parent | remove useless bookmarkPath attribute of UrlSearchItem (diff) | |
download | rekonq-29222348be2aea93de9d9fc937996d0b7474308d.tar.xz |
reintroduce bookmark suggestions
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r-- | src/urlbar/urlresolver.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index 115f0295..753dd002 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -315,7 +315,7 @@ UrlSearchList UrlResolver::historyResolution() { QList<HistoryHashItem> found = Application::historyManager()->find(_typedString); qSort(found); - + UrlSearchList list; foreach (HistoryHashItem i, found) { @@ -333,7 +333,12 @@ UrlSearchList UrlResolver::historyResolution() UrlSearchList UrlResolver::bookmarksResolution() { UrlSearchList list; - //AwesomeUrlCompletion *bookmarkCompletion = Application::bookmarkProvider()->completionObject(); + QList<KBookmark> found = Application::bookmarkProvider()->find(_typedString); + foreach (KBookmark b, found) + { + UrlSearchItem gItem(UrlSearchItem::History, b.url().url(), b.fullText()); + list << gItem; + } return list; } |