2 weeks ago
fix radio buttons (QT)
application/main.c | file | annotate | diff | comparison | revisions | |
ui/qt/button.cpp | file | annotate | diff | comparison | revisions |
--- a/application/main.c Sun Apr 06 14:11:43 2025 +0200 +++ b/application/main.c Wed Apr 09 20:49:27 2025 +0200 @@ -37,7 +37,7 @@ #include "cx/string.h" #include "cx/list.h" -#define UI_TEST +//define UI_TEST #ifdef UI_TEST
--- a/ui/qt/button.cpp Sun Apr 06 14:11:43 2025 +0200 +++ b/ui/qt/button.cpp Wed Apr 09 20:49:27 2025 +0200 @@ -167,9 +167,9 @@ static void radiobutton_event(UiEvent *event, UiEventWrapper *wrapper) { if(wrapper->var) { - UiInteger *value = wrapper->var->value; + UiInteger *value = (UiInteger*)wrapper->var->value; event->eventdata = value; - event->intval = ui_get(value); + event->intval = value->get(value); } }