diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-09-18 21:42:42 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-18 21:42:42 +0300 |
commit | 0b167726780aac72379a444e16149b84c40d2458 (patch) | |
tree | a2bed6c17f46e3ae02920dd4554c05c71232d311 /src/panels | |
parent | Fix compiler warnings (diff) | |
download | rekonq-0b167726780aac72379a444e16149b84c40d2458.tar.xz |
Remove UrlBar::loadRequestedUrl slot
Diffstat (limited to 'src/panels')
-rw-r--r-- | src/panels/navigationtoolbar.cpp | 2 | ||||
-rw-r--r-- | src/panels/navigationtoolbar.hpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/panels/navigationtoolbar.cpp b/src/panels/navigationtoolbar.cpp index ae55ac02..950efaad 100644 --- a/src/panels/navigationtoolbar.cpp +++ b/src/panels/navigationtoolbar.cpp @@ -20,6 +20,8 @@ NavigationToolBar::NavigationToolBar(QWidget *parent) : QToolBar(parent), urlBar // TODO homeAction->setObjectName("actionHome"); addWidget(urlBar); + connect(urlBar, &QLineEdit::returnPressed, this, + [this]() { emit loadRequestedUrl(QUrl::fromUserInput(urlBar->text()), rekonq::CurrentTab); }); auto *actionFocusUrlBar = new QAction(parent); actionFocusUrlBar->setShortcut({"F6"}); diff --git a/src/panels/navigationtoolbar.hpp b/src/panels/navigationtoolbar.hpp index eaf5b145..bdd2d245 100644 --- a/src/panels/navigationtoolbar.hpp +++ b/src/panels/navigationtoolbar.hpp @@ -21,6 +21,7 @@ public: signals: void loadUrl(rekonq::DefaultUrl url, rekonq::OpenType type = rekonq::CurrentTab); + void loadRequestedUrl(const QUrl &url, rekonq::OpenType type = rekonq::CurrentTab); public slots: void setCurrentView(RekonqView *view); |