diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-11-19 16:39:13 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-11-19 17:41:31 +0100 |
commit | 4ff1ef46d5a03e1fe19619ce41070c70a517d41d (patch) | |
tree | 5bd3532aad1d958e6737b620b73ff4f53ceafc7b /src/urlbar/completionwidget.cpp | |
parent | Adopt a new loading icon. It seems fixing some problems :) (diff) | |
download | rekonq-4ff1ef46d5a03e1fe19619ce41070c70a517d41d.tar.xz |
improvement on urlbar suggestions
STEP 1: clean up!
- remember deleting ASAP the UrlSuggester
- remove preview label icon to let loading being faster
- remove unused opensearch inventories
- let ESC key on suggestions behave like major browser
(restoring original string)
Diffstat (limited to 'src/urlbar/completionwidget.cpp')
-rw-r--r-- | src/urlbar/completionwidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp index f745afae..b7a7bfdb 100644 --- a/src/urlbar/completionwidget.cpp +++ b/src/urlbar/completionwidget.cpp @@ -334,6 +334,10 @@ bool CompletionWidget::eventFilter(QObject *obj, QEvent *ev) } case Qt::Key_Escape: hide(); + + w = qobject_cast<UrlBar *>(parent()); + w->setText(_typedString); + return true; } } @@ -400,6 +404,8 @@ void CompletionWidget::suggestUrls(const QString &text) // NOTE: It's important to call this AFTER orderedSearchItems() to let everything work res->computeSuggestions(); + + delete res; } |