Compare commits

..

No commits in common. "26dc7d8761b1f90484ce5e7fb717252fd08136e8" and "7aa0cf4361a3b57a5e8d76778624481f93aafa66" have entirely different histories.

1 changed files with 0 additions and 9 deletions

View File

@ -96,15 +96,6 @@ class ComboBoxDelegate(QItemDelegate):
class TableModel(PamhyrTableModel): class TableModel(PamhyrTableModel):
def is_same_data(self, index, value):
row = index.row()
column = index.column()
if self._headers[column] == "type":
return int(self._data.data[row][column]) == int(value)
return super(TableModel, self).is_same_data(index, value)
def data(self, index, role): def data(self, index, role):
if role == Qt.TextAlignmentRole: if role == Qt.TextAlignmentRole:
return Qt.AlignHCenter | Qt.AlignVCenter return Qt.AlignHCenter | Qt.AlignVCenter