diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-05 01:31:13 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-05 01:31:13 +0200 |
commit | 352168759ea96b35296eaf33790fbe073b69f69b (patch) | |
tree | f30a483162d84101b142825823872e64489620ce /src/urlbar/lineedit.h | |
parent | A "nice" hack to fix bug 211557 (diff) | |
download | rekonq-352168759ea96b35296eaf33790fbe073b69f69b.tar.xz |
This commit is the first implementation of a new new new urlbar
Here are its features:
- KLineEdit based
- ability to easily add "icons" :)
- SSL informations shown (a-la firefox)
- smoother animation
- cleaner code
- data QString, not KUrl based (Users type string, not urls!!!)
Diffstat (limited to 'src/urlbar/lineedit.h')
-rw-r--r-- | src/urlbar/lineedit.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/urlbar/lineedit.h b/src/urlbar/lineedit.h index 67ded052..96f25918 100644 --- a/src/urlbar/lineedit.h +++ b/src/urlbar/lineedit.h @@ -30,13 +30,20 @@ #define LINEEDIT_H +// Local Includes +#include "iconbutton.h" + // KDE Includes #include <KLineEdit> +#include <KIcon> + +#include <QToolButton> // Forward Declarations class QContextMenuEvent; class QFocusEvent; class QKeyEvent; +class QStyleOptionFrameV2; class LineEdit : public KLineEdit @@ -46,10 +53,18 @@ class LineEdit : public KLineEdit public: explicit LineEdit(QWidget *parent = 0); virtual ~LineEdit(); - + + IconButton *iconButton() const; + + void updateStyles(); + protected: - virtual void keyPressEvent(QKeyEvent*); + virtual void keyPressEvent(QKeyEvent *); virtual void mouseDoubleClickEvent(QMouseEvent *); + virtual void paintEvent(QPaintEvent *); + +private: + IconButton *_icon; }; #endif // LINEEDIT_H |