From c03fc45aca526f94e07b99672fb09825af86221c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 17 Apr 2018 17:23:53 +0200 Subject: Hovering over links shows them in the status bar again --- src/mainwindow/window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainwindow/window.cpp') diff --git a/src/mainwindow/window.cpp b/src/mainwindow/window.cpp index 67397fe..0c52076 100644 --- a/src/mainwindow/window.cpp +++ b/src/mainwindow/window.cpp @@ -31,9 +31,16 @@ Window::Window(QWidget *parent, Qt::WindowFlags flags) Q_CHECK_PTR(view); disconnect(titleConnection); + disconnect(linkHoveredConnection); + connect(view, &WebView::titleChanged, this, &Window::setWindowTitle); setWindowTitle(view->title()); + connect(view->page(), &WebPage::linkHovered, this, [this](const QString &url) { + if(!url.isEmpty()) + emit showStatusMessage(url, 3000); + }); + emit currentViewChanged(view); } }); -- cgit v1.2.1