diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-01 13:19:07 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-01 13:19:07 +0200 |
commit | 74361f5b05dc0a255f489256bd25065ef20f5dee (patch) | |
tree | 279f45e5f2bd093cd6fbf1500fe476f91108bd1f /src/webengine/widgets/pagetoolsmenu.h | |
parent | Add keyboard shortcuts for address bar menus (diff) | |
download | smolbote-74361f5b05dc0a255f489256bd25065ef20f5dee.tar.xz |
Page menus refactoring
- Split off menus into their own classes
Page tools menu
- Shows injected scripts
- Shows dev tools page in another dialog
Diffstat (limited to 'src/webengine/widgets/pagetoolsmenu.h')
-rw-r--r-- | src/webengine/widgets/pagetoolsmenu.h | 28 |
1 files changed, 28 insertions, 0 deletions
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 <QMenu> + +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 |