diff --git a/measureSequences/qlistmodel.py b/measureSequences/qlistmodel.py index ce8dede..bf29496 100644 --- a/measureSequences/qlistmodel.py +++ b/measureSequences/qlistmodel.py @@ -44,7 +44,7 @@ def headerData(section, orientation, role): return "Sequence" return "{}".format(section + 1) - def rowCount(self): + def rowCount(self, parent=QtCore.QModelIndex()): return len(self.__sequence) # def columnCount(self, parent): @@ -255,7 +255,7 @@ def setData(self, index, value, role=QtCore.Qt.EditRole): return True return False - def rowCount(self): + def rowCount(self, parent=QtCore.QModelIndex()): return len(self.__sequence) @staticmethod