diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-29 18:49:07 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-05-08 13:40:29 +0300 |
commit | e87693c54ca97ed3a6ed25f9eaae8ab223fc18b1 (patch) | |
tree | 54194ca979ac7e646ff3f10ed6d7f7753273f0be /src/applicationmenu.h | |
parent | Expand pluginloader test coverage (diff) | |
download | smolbote-e87693c54ca97ed3a6ed25f9eaae8ab223fc18b1.tar.xz |
libwebengine
Make src/webengine into a static library
- Add some tests
- Updated manpage
- Remove WebProfileManager::id and WebProfileManager::instance
- Add consumable semantics checks to WebProfileManager
- Add WebProfileManager::walk
Add ApplicationMenu class
Diffstat (limited to 'src/applicationmenu.h')
-rw-r--r-- | src/applicationmenu.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/applicationmenu.h b/src/applicationmenu.h new file mode 100644 index 0000000..7e1fe47 --- /dev/null +++ b/src/applicationmenu.h @@ -0,0 +1,31 @@ +/* + * 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/cgit/smolbote + * + * SPDX-License-Identifier: GPL-3.0 + */ + +#ifndef SMOLBOTE_APPLICATION_MENU_H +#define SMOLBOTE_APPLICATION_MENU_H + +#include <QMenu> + +class Browser; +class QPluginLoader; +class ApplicationMenu : public QMenu +{ + Q_OBJECT + +public: + ApplicationMenu(Browser *app, QWidget *parent = nullptr); + ~ApplicationMenu() = default; + +public slots: + void addPlugin(QPluginLoader *plugin); + +private: + QAction *top_pluginSeparator = nullptr, *bottom_pluginSeparator = nullptr; +}; + +#endif // SMOLBOTE_APPLICATION_MENU_H |