aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webview.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-07-08 11:10:48 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-07-08 11:10:48 +0200
commitfc4c7943c79243ed027f7507c458d067a14bebb2 (patch)
tree38b066c73890145677a1f87f671ef30ed0eefe1c /src/webengine/webview.h
parentIntegrate urlfilter with urlrequestinterceptor (diff)
downloadsmolbote-fc4c7943c79243ed027f7507c458d067a14bebb2.tar.xz
Remove PageMenu
Move zoom widget to WebView context menu Move the other page menu actions to main window menu
Diffstat (limited to 'src/webengine/webview.h')
-rw-r--r--src/webengine/webview.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/webengine/webview.h b/src/webengine/webview.h
index 0717e27..2d07244 100644
--- a/src/webengine/webview.h
+++ b/src/webengine/webview.h
@@ -25,13 +25,8 @@ public:
};
explicit WebView(WebProfile *profile = nullptr, QWidget *parent = nullptr);
- ~WebView() override;
+ ~WebView() = default;
- QMenu *pageMenu()
- {
- Q_CHECK_PTR(m_pageMenu);
- return m_pageMenu;
- }
QMenu *toolsMenu()
{
Q_CHECK_PTR(m_toolsMenu);
@@ -56,12 +51,12 @@ signals:
protected:
WebView *createWindow(QWebEnginePage::WebWindowType type) override;
+ void contextMenuEvent(QContextMenuEvent *event) override;
private:
SubWindow *m_parentWindow = nullptr;
WebProfile *m_profile = nullptr;
- QMenu *m_pageMenu = nullptr;
QMenu *m_toolsMenu = nullptr;
bool m_loaded;