summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-07-21 17:13:17 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-07-21 17:13:17 +0200
commit29222348be2aea93de9d9fc937996d0b7474308d (patch)
treece2f602c81bee4f4b737ee71468368ca6114de3e /src/urlbar
parentremove useless bookmarkPath attribute of UrlSearchItem (diff)
downloadrekonq-29222348be2aea93de9d9fc937996d0b7474308d.tar.xz
reintroduce bookmark suggestions
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlresolver.cpp9
-rw-r--r--src/urlbar/urlresolver.h2
2 files changed, 8 insertions, 3 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;
}
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index 190064eb..c79ce184 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -84,7 +84,7 @@ public:
inline bool operator==(const UrlSearchItem &i) const
{
return i.url == url;//TODO && i.title == title;
- }
+ }
};
typedef QList <UrlSearchItem> UrlSearchList;