fix radio buttons (QT)

2 weeks ago

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 09 Apr 2025 20:49:27 +0200 (2 weeks ago)
changeset 559
dc5ed4c10d83
parent 558
62aefa91ffc5
child 560
9e302b8a6c37

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);
     }
 }
 

mercurial