'Return the QAction instance for the widget (can be a string or
a WidgetDescription instance).'

def action_for_widget(self, widget):

    item = self.item_for_widget(widget)
    return item.data(self.WIDGET_ACTION_ROLE)
