aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webprofile.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-18 21:37:52 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-18 21:37:52 +0200
commit0b70b2802e355a44e6ccbbfcabd03c0992f812e0 (patch)
tree26491a414e5711574aa3a925662b6ca78d59704f /src/webengine/webprofile.h
parentStyle pass (diff)
downloadsmolbote-0b70b2802e355a44e6ccbbfcabd03c0992f812e0.tar.xz
Load URL/Search page menu actions
Diffstat (limited to 'src/webengine/webprofile.h')
-rw-r--r--src/webengine/webprofile.h10
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());