--- a/ui/qt/toolkit.h Sun Mar 30 11:28:24 2025 +0200 +++ b/ui/qt/toolkit.h Sun Mar 30 12:00:26 2025 +0200 @@ -63,6 +63,23 @@ void destroy(); }; +class UiAction : public QAction { + Q_OBJECT + + UiObject *obj; + ui_callback callback; + void *userdata; + +public: + UiVar *var; + + UiAction(UiObject *obj, QString &label, ui_callback f, void *userdata); + ~UiAction(); + +private slots: + void trigger(); +}; + #endif /* TOOLKIT_H */