def __init__(self, model, index, amount): QUndoCommand.__init__(self) self.__model = model self.__index = index self.__amount = amount self.__oldList = None self.__oldHeader = None
def __init__(self, model, index): """ :param model: QTableModel :param index: QModelIndex :param amount: int :return: None """ QUndoCommand.__init__(self) self.__model = model self.__index = index
def __init__(self, widget, init_value, node, mw, description): QUndoCommand.__init__(self, description) self._widget = widget if hasattr(widget, "value"): self._current_value = widget.value() else: self._current_value = widget.text() self._init_value = init_value self._node = node self._mw = mw self.first_time = True
def __init__(self, model, index): """ :param model: QTableModel :param index: QModelIndex :return: None """ QUndoCommand.__init__(self) self.__newValue = None self.__model = model self.__index = index self.__oldValue = None
def __init__(self, model, index): QUndoCommand.__init__(self) self.__model = model self.__index = index
def __init__(self, model, index, amount): QUndoCommand.__init__(self) self.__model = model self.__index = index self.__amount = amount
def __init__(self, model, index): QUndoCommand.__init__(self) self.__newValue = None self.__model = model self.__index = index self.__oldValue = None
def __init__(self, model, index): QUndoCommand.__init__(self) self.newValue = None self.model = model self.index = index self.oldValue = None
def __init__(self, model, row): QUndoCommand.__init__(self) self.model = model self.row = row self.oldList = None self.oldHeader = None
def __init__(self, model, row): QUndoCommand.__init__(self) self.model = model self.row = row
def __init__(self, model, index): QUndoCommand.__init__(self) self.__model = model self.__index = index self.__last_row = list(model.getContent()[index])