aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/window.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-17 17:23:53 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-17 17:23:53 +0200
commitc03fc45aca526f94e07b99672fb09825af86221c (patch)
tree302cd9f6cc8d7a8026aedfda326debf1ea48b6a4 /src/mainwindow/window.cpp
parentRemove LoadingBar (diff)
downloadsmolbote-c03fc45aca526f94e07b99672fb09825af86221c.tar.xz
Hovering over links shows them in the status bar again
Diffstat (limited to 'src/mainwindow/window.cpp')
-rw-r--r--src/mainwindow/window.cpp7
1 files changed, 7 insertions, 0 deletions
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);
}
});