def columnCount(self, parent=QtCore.QModelIndex()): return 2
def removeRows(self, row, count, parent=QtCore.QModelIndex()): super().beginRemoveRows(parent, row, row + count - 1) self._items = self._items[:row] + self._items[row + count:] super().endRemoveRows() return True
def rowCount(self, parent=QtCore.QModelIndex()): return self.size
def rowCount(self, parent=QtCore.QModelIndex()): return len(self._items)
def insertRows(self, row, count, parent=QtCore.QModelIndex()): super().beginInsertRows(parent, row, row + count - 1) for i in range(count): self._items.insert(row, ("", "")) super().endInsertRows() return True
def rowCount(self, index=qt.QModelIndex()): return self.df_data.shape[0]
def columnCount(self, index=qt.QModelIndex()): return self.df_data.shape[1]
def insertRows(self, row, item, column=1, index=QtCore.QModelIndex()): self.beginInsertRows(QtCore.QModelIndex(), row, row + 1) self.items.append(item) self.endInsertRows()
def addComboDelegates(self): for row in range(self.tableModel.rowCount()): index = self.tableModel.index(row, 3, QtCore.QModelIndex()) self.tableView.openPersistentEditor(index)
def rowCount(self, parent=QtCore.QModelIndex()): return len(self.studies)
def remLog(self, row): self.beginRemoveRows(QtCore.QModelIndex(), row, row) del self.logList[row] self.endRemoveRows()
def rowCount(self, parent=QtCore.QModelIndex()): return len(self.logList)