summaryrefslogtreecommitdiff
path: root/src/urlbar.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-29 11:24:11 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-29 11:24:11 +0200
commit82862fbd150afae0101757d1d6081e0e6ddf7baa (patch)
treec864003f3580d4eae365e3757c7a826ae3f6bfe7 /src/urlbar.h
parentForgot to add it... ;) (diff)
downloadrekonq-82862fbd150afae0101757d1d6081e0e6ddf7baa.tar.xz
astyle
Diffstat (limited to 'src/urlbar.h')
-rw-r--r--src/urlbar.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/urlbar.h b/src/urlbar.h
index 4cef5157..236792bd 100644
--- a/src/urlbar.h
+++ b/src/urlbar.h
@@ -46,11 +46,17 @@ class UrlBar : public KHistoryComboBox
Q_OBJECT
public:
- UrlBar(QWidget *parent=0);
+ UrlBar(QWidget *parent = 0);
~UrlBar();
- void selectAll() const { lineEdit()->selectAll(); }
- KUrl url() const { return m_currentUrl; }
+ void selectAll() const
+ {
+ lineEdit()->selectAll();
+ }
+ KUrl url() const
+ {
+ return m_currentUrl;
+ }
QSize sizeHint() const;
@@ -66,22 +72,25 @@ private slots:
void slotLoadFinished(bool);
void slotCleared();
void slotUpdateUrl();
-
+
protected:
virtual void paintEvent(QPaintEvent *event);
virtual void focusOutEvent(QFocusEvent *event);
private:
void setupLineEdit();
-
- KLineEdit *lineEdit() const { return m_lineEdit; }
-
+
+ KLineEdit *lineEdit() const
+ {
+ return m_lineEdit;
+ }
+
static QLinearGradient generateGradient(const QColor &color, int height);
-
+
static QColor s_defaultBaseColor;
LineEdit *m_lineEdit;
-
+
QIcon m_currentIcon;
KUrl m_currentUrl;
int m_progress;