Example #1
0
 def __init__(self, parent = None):
   MyIdentityProxyModel.__init__(self, parent)
Example #2
0
 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))
Example #3
0
 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)