aboutsummaryrefslogtreecommitdiff
path: root/src/webengine
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-01-02 21:44:25 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2019-01-02 21:44:25 +0100
commit9e75098d885aafe79ff3cec5ed114938d60ccb2e (patch)
tree3a5f7d3361a17c8449f2c607c672816939d81539 /src/webengine
parentConnect Developer Tools and View Source actions (diff)
downloadsmolbote-9e75098d885aafe79ff3cec5ed114938d60ccb2e.tar.xz
Update license year
Diffstat (limited to 'src/webengine')
-rw-r--r--src/webengine/webview.cpp12
-rw-r--r--src/webengine/webview.h7
2 files changed, 0 insertions, 19 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp
index 2e90b23..3861306 100644
--- a/src/webengine/webview.cpp
+++ b/src/webengine/webview.cpp
@@ -304,15 +304,3 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
menu->setMinimumWidth(250);
menu->exec(event->globalPos());
}
-
-void WebView::triggerViewAction(WebView::ViewAction action)
-{
- switch(action) {
- case GoHome:
- load(m_profile->homepage());
- break;
- case BookmarkPage:
- emit newBookmark(this->title(), this->url());
- break;
- }
-}
diff --git a/src/webengine/webview.h b/src/webengine/webview.h
index 8d320b9..6fcbe3a 100644
--- a/src/webengine/webview.h
+++ b/src/webengine/webview.h
@@ -18,11 +18,6 @@ class WebView : public QWebEngineView
{
Q_OBJECT
public:
- enum ViewAction {
- GoHome,
- BookmarkPage
- };
-
explicit WebView(WebProfile *profile = nullptr, QWidget *parent = nullptr);
~WebView() = default;
@@ -34,8 +29,6 @@ public:
bool isLoaded() const;
- void triggerViewAction(ViewAction action);
-
public slots:
void search(const QString &term);