From ce06956d314dc8d7080ba96b76f4ee8ad851912a Mon Sep 17 00:00:00 2001 From: aqua Date: Wed, 17 Aug 2022 22:48:01 +0300 Subject: Show main window - added Task Manager, showing all plugins, windows and view --- plugins/webengine/webview.cpp | 1 + plugins/webengine/webview.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'plugins/webengine') 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; }; -- cgit v1.2.1