summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-12 02:00:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-12 02:00:13 +0200
commitd2b1a62a0ecdd286b9d83275170a3322ffafd32c (patch)
tree7ab453799004d0caa7fc3a3106c1c0374f3d9b6f /src/urlbar/urlresolver.h
parentfix strings (diff)
downloadrekonq-d2b1a62a0ecdd286b9d83275170a3322ffafd32c.tar.xz
URLBAR ANIMATION: implementation fix
This commit follows the logic explained somewhere else, moving rekonq to a better management for urls from user input. 1) users type strings --> we store them in QStrings 2) app load urls --> we should ever work with KUrls, trying to guess users needs Here I also removed the unuseful QString icon from UrlSearchItem definition, as we just have a type (Search, Browse, History, Books..), a (k)url and an Application::icon method :)
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r--src/urlbar/urlresolver.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index 489a5a79..3c082e00 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -28,6 +28,9 @@
#define URL_RESOLVER_H
+// KDE Includes
+#include <KUrl>
+
// Qt Includes
#include <QString>
#include <QList>
@@ -48,12 +51,11 @@ class UrlSearchItem
};
int type;
- QString url;
+ KUrl url;
QString title;
- QString icon;
- UrlSearchItem(const int &_type, const QString &_url, const QString &_title = QString(), const QString &_icon = QString())
- : type(_type), url(_url), title(_title), icon(_icon)
+ UrlSearchItem(const int &_type, const KUrl &_url, const QString &_title = QString())
+ : type(_type), url(_url), title(_title)
{};
bool operator==(UrlSearchItem i);