aboutsummaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/widgets/WebViewStack.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/WebViewStack.cpp b/src/widgets/WebViewStack.cpp
index 0d1f7fc..b825623 100644
--- a/src/widgets/WebViewStack.cpp
+++ b/src/widgets/WebViewStack.cpp
@@ -45,6 +45,13 @@ QWebEngineView *WebViewStack::createNewWebView(QUrl url, bool focus) {
return webview;
}
+QList<Tab> WebViewStack::getTabList() {
+ QList<Tab> urls;
+ for (auto &view : webViewList)
+ urls.append((Tab){.url = view->url().toString(), .title = view->title()});
+ return urls;
+}
+
void WebViewStack::onNewWebViewRequest(QWebEngineNewWindowRequest &request) {
switch (request.destination()) {
case QWebEngineNewWindowRequest::InNewTab: