ui/qt/toolkit.h

changeset 526
f6a6b0b08641
parent 66
8d490d97aab8
child 535
ede57f5b6178
--- a/ui/qt/toolkit.h	Thu Mar 27 21:28:04 2025 +0100
+++ b/ui/qt/toolkit.h	Thu Mar 27 22:06:19 2025 +0100
@@ -35,18 +35,32 @@
 
 #include <QApplication>
 
+class UiEventWrapper;
+
+typedef void (*ui_prepare_event_func)(UiEvent *event, UiEventWrapper *wrapper);
+
 class UiEventWrapper : public QObject {
     Q_OBJECT
     
     UiObject *obj;
     ui_callback callback;
     void *userdata;
-
+    
 public:
+    UiVar *var;
+    
+    void *customdata1 = NULL;
+    void *customdata2 = NULL;
+    int customvalue1 = 0;
+    int customvalue2 = 0;
+    
+    ui_prepare_event_func prepare_event = NULL;
+    
     UiEventWrapper(UiObject *obj, ui_callback f, void *userdata);
     
 public slots:
     void slot();
+    void destroy();
 };
 
 

mercurial