'The item was activated, if index has an action we
need to trigger it.'

def __onActivated(self, index):

    if index.isValid():
        action = self.__actionForIndex(index)
        if (action is not None):
            action.trigger()
            self.triggered.emit(action)
