def __init__(self, parent = None): MyIdentityProxyModel.__init__(self, parent)
def data(self, index, role): if index.isValid() and index.column() == 0 and (role == QtCore.Qt.DisplayRole or role == QtCore.Qt.EditRole): return index.row() debug("data : %s[%d,%d]" % (index.internalPointer(), index.row(), index.column())) return debug(MyIdentityProxyModel.data(self, index, role))
def data(self, index, role): if index.isValid() and index.column() == 0 and (role == QtCore.Qt.DisplayRole or role == QtCore.Qt.EditRole): return index.row() return MyIdentityProxyModel.data(self, index, role)