aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/WebView.hpp
blob: 0f2aae641db25d9c87dca4df5e13251c2001c42a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <QWebEngineView>
#include <QtCore>
#include <cstdint>

#include "utils.hpp"

class WebView : public QWebEngineView {
  Q_OBJECT

public:
  WebView(uint32_t webview_id, QWebEngineProfile *profile,
          QWidget *parent_node = nullptr);
  DEFINE_GETTER(get_id, id)

private:
  uint32_t id;
};