From a7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2 Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 27 Aug 2022 15:27:37 +0300 Subject: Rename rView to RekonqView - move rview.hpp to include/ - move src/mainwindow/* to src/ --- plugins/webengine/webview.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/webengine/webview.h') diff --git a/plugins/webengine/webview.h b/plugins/webengine/webview.h index 5bb90696..103b98b3 100644 --- a/plugins/webengine/webview.h +++ b/plugins/webengine/webview.h @@ -13,15 +13,21 @@ class QWebEngineView; -class WebView final : public rView { +class WebView final : public RekonqView { Q_OBJECT public: explicit WebView(const QUrl &url = QUrl(), QWidget *parent = nullptr); ~WebView() final = default; - QString title() const override; + void load(const QUrl &url) override; + [[nodiscard]] int progress() const override { return m_loadProgress; } + + [[nodiscard]] QUrl url() const override; + [[nodiscard]] QString title() const override; + [[nodiscard]] QIcon icon() const override; private: QWebEngineView *view; + int m_loadProgress = 0; }; -- cgit v1.2.1