summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/webengine/webview.cpp1
-rw-r--r--plugins/webengine/webview.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/webengine/webview.cpp b/plugins/webengine/webview.cpp
index 1aef01e2..fab941a9 100644
--- a/plugins/webengine/webview.cpp
+++ b/plugins/webengine/webview.cpp
@@ -23,3 +23,4 @@ WebView::WebView(const QUrl &url, QWidget *parent) : rView(url, parent), view(ne
connect(view, &QWebEngineView::titleChanged, this, [this](const QString &title) { emit titleChanged(title); });
view->load(url);
}
+QString WebView::title() const { return view->title(); }
diff --git a/plugins/webengine/webview.h b/plugins/webengine/webview.h
index 0b8d0dae..5bb90696 100644
--- a/plugins/webengine/webview.h
+++ b/plugins/webengine/webview.h
@@ -20,6 +20,8 @@ public:
explicit WebView(const QUrl &url = QUrl(), QWidget *parent = nullptr);
~WebView() final = default;
+ QString title() const override;
+
private:
QWebEngineView *view;
};