From 352168759ea96b35296eaf33790fbe073b69f69b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 5 Apr 2010 01:31:13 +0200 Subject: 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!!!) --- src/urlbar/lineedit.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/urlbar/lineedit.h') 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 +#include + +#include // 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 -- cgit v1.2.1