From 94ea03c25d322812592a7684cb70a0c31a327772 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 11 Jan 2017 21:32:43 +0100 Subject: Minor changes Tabs now show the icon of the webpage Warning box when closing multiple tabs --- src/widgets/webviewtabbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/widgets/webviewtabbar.cpp') diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp index 59e5c69..efc8fef 100644 --- a/src/widgets/webviewtabbar.cpp +++ b/src/widgets/webviewtabbar.cpp @@ -23,6 +23,10 @@ int WebViewTabBar::addTab(QWebEngineView *view) int index = m_views.indexOf(view); setTabText(index, title); }); + connect(view, &QWebEngineView::iconChanged, [this, view](const QIcon &icon) { + int index = m_views.indexOf(view); + setTabIcon(index, icon); + }); return QTabBar::addTab("New Tab"); } -- cgit v1.2.1