aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webview.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-02 23:06:43 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-02 23:06:43 +0200
commitb14282fcc54f98725961e13e089f8b211cfa4a88 (patch)
treede9de699005eb3581562d80695fd3af7fb4c5313 /src/webengine/webview.h
parentUpdate manpage (diff)
downloadsmolbote-b14282fcc54f98725961e13e089f8b211cfa4a88.tar.xz
Only create developer tools page when action is triggered
Diffstat (limited to 'src/webengine/webview.h')
-rw-r--r--src/webengine/webview.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webengine/webview.h b/src/webengine/webview.h
index 0750aee..233565e 100644
--- a/src/webengine/webview.h
+++ b/src/webengine/webview.h
@@ -27,13 +27,13 @@ public:
~WebView() override;
QMenu *pageMenu();
- QMenu *toolsMenu() {
+ QMenu *toolsMenu()
+ {
Q_CHECK_PTR(m_toolsMenu);
return m_toolsMenu;
}
void setPage(QWebEnginePage *page);
- void popupPage(QWebEnginePage *page);
bool isLoaded() const;
int loadProgress() const;
@@ -59,8 +59,6 @@ private:
bool m_loaded;
int m_loadProgress;
-
- QWebEnginePage *m_devToolsPage;
};
WebView *createWebView(const QUrl &url, WebEngineProfile *profile, MainWindow *parent);