diff options
Diffstat (limited to 'src/webwindow.hpp')
-rw-r--r-- | src/webwindow.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/webwindow.hpp b/src/webwindow.hpp index 1d4a83e..c29a953 100644 --- a/src/webwindow.hpp +++ b/src/webwindow.hpp @@ -14,10 +14,10 @@ class WebWindow : public QMainWindow { private: - QWebEngineProfile profile; - QWebEnginePage page; - QWebEngineView view; - PermissionManager perm; + QWebEngineProfile *profile; + QWebEnginePage *page; + QWebEngineView *view; + PermissionManager *perm; void web_configure(); void permission_requested(const QUrl origin, QWebEnginePage::Feature feature); @@ -27,7 +27,8 @@ public: WebWindow(const QString &url); void connect_icon_changed(std::function<void(const QIcon)> fn); void connect_title_changed(std::function<void(const QString)> fn); - void connect_notification(std::function<void(std::unique_ptr<QWebEngineNotification>)> fn); + void connect_notification( + std::function<void(std::unique_ptr<QWebEngineNotification>)> fn); PermissionManager &permissions(); void reset_cookies(); void toggle_visibility(); |