fix toolbar item signal

Sat, 19 Apr 2025 19:56:09 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 19 Apr 2025 19:56:09 +0200
changeset 576
dd38b170f9a8
parent 575
50da9696a865
child 577
c2e854820922

fix toolbar item signal

ui/qt/toolbar.cpp file | annotate | diff | comparison | revisions
--- a/ui/qt/toolbar.cpp	Fri Apr 18 17:22:28 2025 +0200
+++ b/ui/qt/toolbar.cpp	Sat Apr 19 19:56:09 2025 +0200
@@ -95,7 +95,7 @@
     toolbar->addAction(action);
     
     UiEventWrapper *event = new UiEventWrapper(obj, item->args.onclick, item->args.onclickdata);
-    action->connect(action, SIGNAL(clicked()), event, SLOT(slot()));
+    action->connect(action, SIGNAL(triggered()), event, SLOT(slot()));
     action->connect(action, SIGNAL(destroyed()), event, SLOT(destroy()));
 }
 
@@ -123,7 +123,7 @@
     event->var = var;
     event->customdata1 = action;
     event->prepare_event = toolbar_togglebutton_event;
-    action->connect(action, SIGNAL(clicked()), event, SLOT(slot()));
+    action->connect(action, SIGNAL(triggered()), event, SLOT(slot()));
     action->connect(action, SIGNAL(destroyed()), event, SLOT(destroy()));
 }
 

mercurial