diff options
| author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-11 21:32:43 +0100 | 
|---|---|---|
| committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-11 21:32:43 +0100 | 
| commit | 94ea03c25d322812592a7684cb70a0c31a327772 (patch) | |
| tree | b058f3c3d6f64208e11b8def3bc9e6bf05576489 /src/widgets | |
| parent | Window title bar gets updated (diff) | |
| download | smolbote-94ea03c25d322812592a7684cb70a0c31a327772.tar.xz | |
Minor changes
Tabs now show the icon of the webpage
Warning box when closing multiple tabs
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/webviewtabbar.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| 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");  } | 
