From d2b1a62a0ecdd286b9d83275170a3322ffafd32c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 12 Apr 2010 02:00:13 +0200 Subject: 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 :) --- src/urlbar/listitem.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/urlbar/listitem.h') diff --git a/src/urlbar/listitem.h b/src/urlbar/listitem.h index de22d739..1b594115 100644 --- a/src/urlbar/listitem.h +++ b/src/urlbar/listitem.h @@ -31,6 +31,7 @@ // Forward Declarations class UrlSearchItem; +class KUrl; class ListItem : public QWidget @@ -54,7 +55,8 @@ protected: virtual void mousePressEvent(QMouseEvent *e); private: - QStyleOptionViewItemV4 m_option; - QString guessNameFromUrl(QUrl url); + QString guessNameFromUrl(KUrl url); void insertIcon(QLayout *layout, QString icon); + + QStyleOptionViewItemV4 _option; }; -- cgit v1.2.1