Commit e75fc146 authored by Benjamin Long's avatar Benjamin Long

Fix event record under a QToolButton.

Now if the QToolButton get only one QAction, we record a click.
We do that in case the signal clicked() is connect to a slot.
parent 18f59c7e
......@@ -124,6 +124,10 @@ void pqAbstractButtonEventTranslator::onActivate(QAbstractButton* actualObject)
const bool new_value = !actualObject->isChecked();
emit recordEvent(object, "set_boolean", new_value ? "true" : "false");
else if(tb && tb->actions().count() < 2)
emit recordEvent(tb, "activate", "");
emit recordEvent(object, "activate", "");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment