mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
No commits in common. "26dc7d8761b1f90484ce5e7fb717252fd08136e8" and "7aa0cf4361a3b57a5e8d76778624481f93aafa66" have entirely different histories.
26dc7d8761
...
7aa0cf4361
|
|
@ -96,15 +96,6 @@ class ComboBoxDelegate(QItemDelegate):
|
|||
|
||||
|
||||
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):
|
||||
if role == Qt.TextAlignmentRole:
|
||||
return Qt.AlignHCenter | Qt.AlignVCenter
|
||||
|
|
|
|||
Loading…
Reference in New Issue