From 9e75098d885aafe79ff3cec5ed114938d60ccb2e Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 2 Jan 2019 21:44:25 +0100 Subject: Update license year --- src/webengine/webview.cpp | 12 ------------ src/webengine/webview.h | 7 ------- 2 files changed, 19 deletions(-) (limited to 'src/webengine') 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); -- cgit v1.2.1