From 1bc3c311551d53759ffdfb11904c45f1cc2f91ce Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 26 Jan 2018 00:41:09 +0100 Subject: UrlLineEdit rework - moved UrlLineEdit to src/addressbar - added UrlLineEdit::connectWebView - removed UrlLineEdit::pageAction - UrlLineEdit restores the text format when losing focus - Split off completer code into Completer class - WebPage now displays a warning message box instead on certificate errors --- src/mainwindow/mainwindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mainwindow/mainwindow.cpp') diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index a45c89e..d5efe5c 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include MainWindow::MainWindow(std::shared_ptr config, QWidget *parent) @@ -270,9 +270,7 @@ void MainWindow::handleTabChanged(WebView *view) // connect signals m_navigationBar->connectWebView(view); - connect(view, &WebView::urlChanged, m_addressBar, &UrlLineEdit::setUrl); - m_addressBar->setUrl(view->url()); - m_addressBar->pageAction()->setMenu(view->pageMenu()); + m_addressBar->connectWebView(view); connect(view, &WebView::titleChanged, this, &MainWindow::handleTitleUpdated); -- cgit v1.2.1