summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.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/urlbar.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/urlbar.h')
-rw-r--r--src/urlbar/urlbar.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h
index 991b9038..848073db 100644
--- a/src/urlbar/urlbar.h
+++ b/src/urlbar/urlbar.h
@@ -49,7 +49,7 @@ class QLinearGradient;
class QWidget;
-class UrlBar : public KComboBox
+class UrlBar : public LineEdit
{
Q_OBJECT
@@ -57,32 +57,24 @@ public:
UrlBar(QWidget *parent = 0);
~UrlBar();
- void selectAll() const;
- KUrl url() const;
- QSize sizeHint() const;
-
void setCurrentTab(WebTab *);
void setPrivateMode(bool on);
-
-public slots:
- void setUrl(const QUrl &url);
- void updateUrl();
private slots:
void activated(const QString& url, Rekonq::OpenType = Rekonq::CurrentTab);
void suggestUrls(const QString &editedText);
+ void setQUrl(const QUrl &url);
+ void loadFinished();
+ void setTrustedHost(bool on);
+
protected:
virtual void paintEvent(QPaintEvent *event);
virtual void keyPressEvent(QKeyEvent *event);
virtual void focusInEvent(QFocusEvent *event);
private:
- LineEdit *m_lineEdit;
-
- KUrl m_currentUrl;
-
- CompletionWidget *m_box;
+ CompletionWidget *_box;
WebTab *_tab;
bool _privateMode;
};