diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-04-05 13:46:34 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-04-05 13:46:34 +0200 |
commit | 817500ffb63a26e534edff7524e8c2988e851506 (patch) | |
tree | 7fc5cb7fd242f4225906dc521af6003c147536cb /src | |
parent | This commit is the first implementation of a new new new urlbar (diff) | |
download | rekonq-817500ffb63a26e534edff7524e8c2988e851506.tar.xz |
Load the url when an url is dropped onto the urlbar
Diffstat (limited to 'src')
-rw-r--r-- | src/urlbar/urlbar.cpp | 7 | ||||
-rw-r--r-- | src/urlbar/urlbar.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index dd14a4a3..35934bf4 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -269,3 +269,10 @@ void UrlBar::setTrustedHost(bool on) kDebug() << "SET TRUSTED HOST.."; iconButton()->setIconUrl( _tab->url() , on ); } + + +void UrlBar::dropEvent(QDropEvent *event) +{ + LineEdit::dropEvent(event); + activated(text()); +} diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h index 848073db..3b28fb3a 100644 --- a/src/urlbar/urlbar.h +++ b/src/urlbar/urlbar.h @@ -72,6 +72,7 @@ protected: virtual void paintEvent(QPaintEvent *event); virtual void keyPressEvent(QKeyEvent *event); virtual void focusInEvent(QFocusEvent *event); + virtual void dropEvent(QDropEvent *event); private: CompletionWidget *_box; |