--- a/ui/qt/toolkit.cpp Thu Mar 27 21:28:04 2025 +0100 +++ b/ui/qt/toolkit.cpp Thu Mar 27 22:06:19 2025 +0100 @@ -129,5 +129,15 @@ e.document = obj->ctx->document; e.eventdata = NULL; e.intval = 0; + e.set = ui_get_setop(); + if(prepare_event) { + prepare_event(&e, this); + } callback(&e, userdata); + + // TODO: notify var observers } + +void UiEventWrapper::destroy() { + delete this; +}