ui/qt/toolkit.cpp

changeset 526
f6a6b0b08641
parent 519
8884c7fbe4cb
child 535
ede57f5b6178
--- 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;
+}

mercurial