From 2364f9930be89fb6b88d3a9697f251109069624c Mon Sep 17 00:00:00 2001 From: Benjamin Klebel Date: Thu, 17 Sep 2020 23:08:52 +0200 Subject: [PATCH] debugging --- measureSequences/qlistmodel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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