Add GetTrayMenu to plugin API to provide a dedicated interface for registering a tray menu for a plugin
This commit is contained in:
parent
2f25c4af7f
commit
2800e76e9d
5 changed files with 54 additions and 36 deletions
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include <QtPlugin>
|
||||
#include <QLabel>
|
||||
#include <QMenu>
|
||||
|
||||
#define OpenRGBPluginInterface_IID "com.OpenRGBPluginInterface"
|
||||
|
||||
|
|
@ -68,6 +69,7 @@ public:
|
|||
\*-------------------------------------------------------------------------------------------------*/
|
||||
virtual void Load(bool dark_theme, ResourceManager* resource_manager_ptr) = 0;
|
||||
virtual QWidget* GetWidget() = 0;
|
||||
virtual QMenu* GetTrayMenu() = 0;
|
||||
virtual void Unload() = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue