diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2014-01-12 10:49:38 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2014-01-12 10:49:38 +0100 |
commit | 806c0ef272b847e8a40f9335661f7336e723d3c0 (patch) | |
tree | 5589ad5fa36c4bae4cb56675928a03f45d53d427 /src/urlbar | |
parent | rekonq 2.4.1 (diff) | |
download | rekonq-806c0ef272b847e8a40f9335661f7336e723d3c0.tar.xz |
Implement the "clear urlbar action"
You just need to add it (OUT of the urlbar) with
right click --> configure main toolbar.
Is this enough guys?
PS: Thanks alouali for the idea ;)
CCBUG: 243724
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/urlbar.cpp | 8 | ||||
-rw-r--r-- | src/urlbar/urlbar.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 274de8ab..2dca0ac0 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -888,3 +888,11 @@ void UrlBar::removeFromFavorites() updateRightIcons(); } } + + +void UrlBar::clearUrlbar() +{ + clear(); + clearRightIcons(); + setFocus(); +} diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h index 324e489b..67c2a9c6 100644 --- a/src/urlbar/urlbar.h +++ b/src/urlbar/urlbar.h @@ -97,6 +97,8 @@ public Q_SLOTS: */ void manageBookmarks(); + void clearUrlbar(); + private Q_SLOTS: void loadRequestedUrl(const KUrl& url, Rekonq::OpenType = Rekonq::CurrentTab); |