summaryrefslogtreecommitdiff
path: root/src/urlbar/lineedit.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-05 01:31:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-05 01:31:13 +0200
commit352168759ea96b35296eaf33790fbe073b69f69b (patch)
treef30a483162d84101b142825823872e64489620ce /src/urlbar/lineedit.h
parentA "nice" hack to fix bug 211557 (diff)
downloadrekonq-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.h19
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