From b44a0fd574329a54a8377b5fe9e58748f846611f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 1 Apr 2010 15:38:45 +0200 Subject: Cleaning awesome bar code a bit.. - update is better than repaint (this also probably solves the flickering results update) - right scope for some methods - removed KUrl use from there --- src/urlbar/completionwidget.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/urlbar/completionwidget.h') diff --git a/src/urlbar/completionwidget.h b/src/urlbar/completionwidget.h index 64d33189..a714bb17 100644 --- a/src/urlbar/completionwidget.h +++ b/src/urlbar/completionwidget.h @@ -33,32 +33,26 @@ #include "urlresolver.h" #include "listitem.h" -// Qt Includes -#include - // KDE Includes #include -// Forward Declarations -class KUrl; +// Qt Includes +#include class CompletionWidget : public QFrame { -Q_OBJECT + Q_OBJECT public: CompletionWidget(QWidget *parent); void insertSearchList(const UrlSearchList &list); void popup(); - - void up(); - void down(); void clear(); + virtual bool eventFilter(QObject *obj, QEvent *ev); void setVisible(bool visible); - KUrl currentUrl(); private slots: void itemChosen(ListItem *item, Qt::MouseButton = Qt::LeftButton); @@ -68,7 +62,9 @@ signals: private: void sizeAndPosition(); - + void up(); + void down(); + QWidget *_parent; UrlSearchList _list; -- cgit v1.2.1