#include <contextmenuaction.h>
Public Attributes | |
std::string | label |
std::string | id |
std::optional< std::string > | iconPath = std::nullopt |
Datastructure for a custom menu action in a context menu. The id should be unique, for example "<getIdentifier()>.myAction"
. Otherwise it cannnot be guaranteed that the correct InteractionHandler/Processor handles the corresponding ContextMenuEvent. If a menu action is triggered, a ContextMenuEvent with the id will be propagated through the processor network.