blob: 103b98b389c74799ec56c4fe9f2f2fecc54e9dd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* ============================================================
* The rekonq project
* ============================================================
* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
* ============================================================
* Description: Qt WebEngine View
* ============================================================ */
#pragma once
#include "rview.hpp"
class QWebEngineView;
class WebView final : public RekonqView {
Q_OBJECT
public:
explicit WebView(const QUrl &url = QUrl(), QWidget *parent = nullptr);
~WebView() final = default;
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;
};
|