diff options
Diffstat (limited to 'src/webengine/webprofile.h')
-rw-r--r-- | src/webengine/webprofile.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <QHash> #include <QUrl> +#include <QString> #include <QWebEngineProfile> 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<QString, QString> conf); void saveProfile(const QString &path = QString()); |