# HG changeset patch # User Olaf Wintermann # Date 1784835966 -7200 # Node ID b147745ba6be289895573b08cac0c1b6d94776f8 # Parent 185d9fe96c6bb34bdde1b03b0c539dda97f41092 fix qt build diff -r 185d9fe96c6b -r b147745ba6be application/demo_states.c --- a/application/demo_states.c Wed Jul 22 21:21:24 2026 +0200 +++ b/application/demo_states.c Thu Jul 23 21:46:06 2026 +0200 @@ -28,6 +28,7 @@ #include "demo_states.h" +#include #include static void *doc1; diff -r 185d9fe96c6b -r b147745ba6be ui/qt/toolkit.cpp --- a/ui/qt/toolkit.cpp Wed Jul 22 21:21:24 2026 +0200 +++ b/ui/qt/toolkit.cpp Thu Jul 23 21:46:06 2026 +0200 @@ -131,7 +131,7 @@ e.window = obj->window; e.document = obj->ctx->document; e.eventdata = NULL; - e.eventdatatype = 0; + e.eventdatatype = UI_EVENT_DATA_NULL; e.intval = 0; e.set = ui_get_setop(); if(prepare_event) { @@ -169,7 +169,7 @@ e.window = obj->window; e.document = obj->ctx->document; e.eventdata = NULL; - e.eventdatatype = 0; + e.eventdatatype = UI_EVENT_DATA_NULL; e.intval = 0; e.set = ui_get_setop(); if(prepare_event) { @@ -185,3 +185,6 @@ action->setEnabled((bool)enable); } +void ui_call_mainthread(ui_threadfunc tf, void* td) { + // TODO +} diff -r 185d9fe96c6b -r b147745ba6be ui/qt/window.cpp --- a/ui/qt/window.cpp Wed Jul 22 21:21:24 2026 +0200 +++ b/ui/qt/window.cpp Thu Jul 23 21:46:06 2026 +0200 @@ -113,7 +113,7 @@ evt.document = evt.obj->ctx->document; evt.window = evt.obj->window; evt.eventdata = NULL; - evt.eventdatatype = 0; + evt.eventdatatype = UI_EVENT_DATA_NULL; evt.intval = 0; if(msgBox.clickedButton() == btn1) { evt.intval = 1; diff -r 185d9fe96c6b -r b147745ba6be ui/ui/toolkit.h --- a/ui/ui/toolkit.h Wed Jul 22 21:21:24 2026 +0200 +++ b/ui/ui/toolkit.h Thu Jul 23 21:46:06 2026 +0200 @@ -214,8 +214,6 @@ typedef struct UiTextStyle UiTextStyle; typedef struct UiColor UiColor; -typedef enum UiEventType UiEventType; - /* begin opaque types */ typedef struct UiContext UiContext; typedef struct UiContainer UiContainer; @@ -337,6 +335,7 @@ UI_EVENT_DATA_FILE_LIST, UI_EVENT_DATA_TYPED_OBJECT }; +typedef enum UiEventType UiEventType; struct UiEvent { UiObject *obj;