diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-17 01:38:07 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-17 01:38:07 +0200 |
commit | 74a7ea3732853f954fcab7088acaa2413fc3e7c1 (patch) | |
tree | 02ca9dd6f0dd4ea1b18346d4c6004c74c504d04f /src/mainwindow/widgets | |
parent | Multiple subwindows interface (diff) | |
download | smolbote-74a7ea3732853f954fcab7088acaa2413fc3e7c1.tar.xz |
Enabled address bar suggestions
Also fixed occasional bug when showing the completer.
Diffstat (limited to 'src/mainwindow/widgets')
-rw-r--r-- | src/mainwindow/widgets/navigationbar.cpp | 12 | ||||
-rw-r--r-- | src/mainwindow/widgets/navigationbar.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/mainwindow/widgets/navigationbar.cpp b/src/mainwindow/widgets/navigationbar.cpp index e2c714e..98a7932 100644 --- a/src/mainwindow/widgets/navigationbar.cpp +++ b/src/mainwindow/widgets/navigationbar.cpp @@ -77,16 +77,6 @@ NavigationBar::NavigationBar(const QHash<QString, QString> &conf, QWidget *paren connect(homeAction, &QAction::triggered, this, [this]() { m_view->triggerViewAction(WebView::GoHome); }); - - QHash<QString, QString> a; - addressBar = new UrlLineEdit(a, this); - addWidget(addressBar); - - auto *focusShortcut = new QShortcut(QKeySequence("F4"), this); - connect(focusShortcut, &QShortcut::activated, this, [this]() { - addressBar->setFocus(); - addressBar->selectAll(); - }); } void NavigationBar::connectWebView(WebView *view) @@ -115,8 +105,6 @@ void NavigationBar::connectWebView(WebView *view) loadFinishedConnection = connect(view, &WebView::loaded, this, &NavigationBar::update_loadFinished); stopReloadAction->setEnabled(true); homeAction->setEnabled(true); - - addressBar->connectWebView(view); } void NavigationBar::update_loadStarted() diff --git a/src/mainwindow/widgets/navigationbar.h b/src/mainwindow/widgets/navigationbar.h index 1b4cc05..f2c7e61 100644 --- a/src/mainwindow/widgets/navigationbar.h +++ b/src/mainwindow/widgets/navigationbar.h @@ -11,7 +11,6 @@ #include <QToolBar> -class UrlLineEdit; class WebView; class NavigationBar : public QToolBar { @@ -34,7 +33,6 @@ private: QAction *backAction, *forwardAction; QAction *stopReloadAction; QAction *homeAction; - UrlLineEdit *addressBar; QMetaObject::Connection loadStartedConnection, loadFinishedConnection; }; |