'Insert a widget action (from a `QStandardItem`) at index.'

def __insertItem(self, index, item):

    value = item.data(self.__actionRole)
    if (value is not None):
        action = value
    else:
        action = QAction(item.text(), self)
        action.setIcon(item.icon())
    self.insertAction(index, action)
