From 74361f5b05dc0a255f489256bd25065ef20f5dee Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 1 Apr 2018 13:19:07 +0200 Subject: Page menus refactoring - Split off menus into their own classes Page tools menu - Shows injected scripts - Shows dev tools page in another dialog --- src/webengine/widgets/pagetoolsmenu.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/webengine/widgets/pagetoolsmenu.h (limited to 'src/webengine/widgets/pagetoolsmenu.h') diff --git a/src/webengine/widgets/pagetoolsmenu.h b/src/webengine/widgets/pagetoolsmenu.h new file mode 100644 index 0000000..010bb43 --- /dev/null +++ b/src/webengine/widgets/pagetoolsmenu.h @@ -0,0 +1,28 @@ +/* + * This file is part of smolbote. It's copyrighted by the contributors recorded + * in the version control history of the file, available from its original + * location: https://neueland.iserlohn-fortress.net/smolbote.hg + * + * SPDX-License-Identifier: GPL-3.0 + */ + +#ifndef SMOLBOTE_PAGETOOLSMENU_H +#define SMOLBOTE_PAGETOOLSMENU_H + +#include + +class WebView; +class PageToolsMenu : public QMenu +{ + Q_OBJECT +public: + explicit PageToolsMenu(WebView *parent = nullptr); + +public slots: + void createEntries(); + +private: + WebView *parentView; +}; + +#endif //SMOLBOTE_PAGETOOLSMENU_H -- cgit v1.2.1