diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-08-09 17:32:55 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2023-08-28 17:37:31 -0400 |
| commit | eee50d9906b1eadfa57a4c8659a8d06b61759998 (patch) | |
| tree | 7c1ecdd13ddf65e5b54f88b8d651736f7fa99c3c /ui/action.h | |
| parent | 2446736031832834769858284377563416284762 (diff) | |
Allow adding actions to menus with relative paths
Diffstat (limited to 'ui/action.h')
| -rw-r--r-- | ui/action.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/action.h b/ui/action.h index 593e305c..38ca296a 100644 --- a/ui/action.h +++ b/ui/action.h @@ -318,8 +318,11 @@ class BINARYNINJAUIAPI Menu Menu(const Menu& menu); void addAction(const QString& action, const QString& group, uint8_t order = MENU_ORDER_NORMAL); + void addRelativeAction(const QString& base, const QString& action, const QString& group, uint8_t order = MENU_ORDER_NORMAL); void addAction( const QString& submenu, const QString& action, const QString& group, uint8_t order = MENU_ORDER_NORMAL); + void addRelativeAction( + const QString& submenu, const QString& base, const QString& action, const QString& group, uint8_t order = MENU_ORDER_NORMAL); void removeAction(const QString& action); void removeAction(const QString& submenu, const QString& action); |
