summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-01-09 11:40:43 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-01-09 11:42:23 +0100
commit527756748468ddd3d5e7fa1bafcb2e32bf02144b (patch)
treef1f9a34722932e30d8341ec8299cda07b18cfc15 /src/urlbar/urlresolver.h
parentShould fix rekonq compilation against KDE SC 4.5... (diff)
downloadrekonq-527756748468ddd3d5e7fa1bafcb2e32bf02144b.tar.xz
Update the completion list when the user switches search engine on the fly.
Lionel Chauvin's work. Reviewed by me :)
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r--src/urlbar/urlresolver.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index e6ca7703..43a4a43e 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -67,7 +67,7 @@ public:
int image_width;
int image_height;
QString bookmarkPath;
-
+
UrlSearchItem(const UrlSearchItem &item) : type(item.type),
url(item.url),
title(item.title),
@@ -85,7 +85,7 @@ public:
image_width(0),
image_height(0)
{};
-
+
UrlSearchItem(const int &_type,
const QString &_url,
const QString &_title = QString(),
@@ -106,7 +106,7 @@ public:
inline bool operator==(const UrlSearchItem &i) const
{
return i.url == url;//TODO && i.title == title;
- }
+ }
};
typedef QList <UrlSearchItem> UrlSearchList;
@@ -154,13 +154,14 @@ private:
UrlSearchList orderLists();
QString _typedString;
+ QString _typedQuery;
UrlSearchList _webSearches;
UrlSearchList _qurlFromUserInput;
UrlSearchList _history;
UrlSearchList _bookmarks;
UrlSearchList _suggestions;
-
+
static QRegExp _browseRegexp;
static QRegExp _searchEnginesRegexp;