@@ -48,12 +48,14 @@ class CustomTableModel(QtCore.QAbstractT
else:
return QtCore.QVariant(self.placeholder)
def headerData(self, section, orientation, role=QtCore.Qt.DisplayRole):
if orientation == QtCore.Qt.Horizontal and role == QtCore.Qt.DisplayRole:
return QtCore.QVariant(self.headers[section])
elif orientation == QtCore.Qt.Vertical and role == QtCore.Qt.DisplayRole:
return QtCore.QVariant(section)
return super().headerData(section, orientation, role)
def rowCount(self, parent=None):
return len(self.model)
def columnCount(self, parent=None):