ui/qt/toolbar.cpp

changeset 576
dd38b170f9a8
parent 575
50da9696a865
child 659
d6baaa93f7be
--- 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