aboutsummaryrefslogtreecommitdiff
path: root/src/subwindow/tabwidget.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-12-15 15:48:28 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-12-15 15:48:28 +0100
commit4066c1f093b572b949f9b1f5b0dc1c1a646b7552 (patch)
treed1b220e65ac6e8c527c107dc7386a38afb930374 /src/subwindow/tabwidget.cpp
parentAdd SaveSessionDialog (diff)
downloadsmolbote-4066c1f093b572b949f9b1f5b0dc1c1a646b7552.tar.xz
Move tab actions to Subwindow menu
Diffstat (limited to 'src/subwindow/tabwidget.cpp')
-rw-r--r--src/subwindow/tabwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subwindow/tabwidget.cpp b/src/subwindow/tabwidget.cpp
index c635aee..58e9b03 100644
--- a/src/subwindow/tabwidget.cpp
+++ b/src/subwindow/tabwidget.cpp
@@ -15,6 +15,7 @@
#include <QTabBar>
#include "webprofile.h"
#include <QWebEngineHistory>
+#include "subwindow.h"
inline WebView *createViewFromInfo(TabWidget::TabInformation &tab, QWidget *parent)
{
@@ -93,6 +94,9 @@ int TabWidget::addTab(WebView *view)
this->setTabIcon(idx, icon);
});
+ SubWindow::TabData data;
+ tabBar()->setTabData(idx, QVariant::fromValue<SubWindow::TabData>(data));
+
return idx;
}