From 0b70b2802e355a44e6ccbbfcabd03c0992f812e0 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 18 Apr 2018 21:37:52 +0200 Subject: Load URL/Search page menu actions --- src/webengine/webprofile.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/webengine/webprofile.h') diff --git a/src/webengine/webprofile.h b/src/webengine/webprofile.h index 0b3ce7f..ddb642c 100644 --- a/src/webengine/webprofile.h +++ b/src/webengine/webprofile.h @@ -11,6 +11,7 @@ #include #include +#include #include class WebProfile : public QWebEngineProfile @@ -41,6 +42,15 @@ public: QUrl homepage() const; QUrl newtab() const; + void addBookmark(const QString &title, const QString &url) + { + if(!title.isEmpty() && !url.isEmpty()) + emit addBookmarkRequested(title, url); + } + +signals: + void addBookmarkRequested(const QString &title, const QString &url); + public slots: void loadProfile(QHash conf); void saveProfile(const QString &path = QString()); -- cgit v1.2.1