diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-01 15:38:45 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-01 15:38:45 +0200 |
commit | b44a0fd574329a54a8377b5fe9e58748f846611f (patch) | |
tree | bd476baa50a84c2d03400eb7200a472bded93e57 /src/urlbar/completionwidget.h | |
parent | 3 pixels preview's dilemma (diff) | |
download | rekonq-b44a0fd574329a54a8377b5fe9e58748f846611f.tar.xz |
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
Diffstat (limited to 'src/urlbar/completionwidget.h')
-rw-r--r-- | src/urlbar/completionwidget.h | 18 |
1 files changed, 7 insertions, 11 deletions
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 <QFrame> - // KDE Includes #include <KLineEdit> -// Forward Declarations -class KUrl; +// Qt Includes +#include <QFrame> 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; |