This commit is contained in:
artem30801
2019-11-22 16:39:18 +03:00
parent 10e38b9251
commit f58f097321
6 changed files with 487 additions and 3 deletions

View File

@@ -177,9 +177,8 @@ class CopterDataModel(QtCore.QAbstractTableModel):
return len(self.headers)
def headerData(self, section, orientation, role=Qt.DisplayRole):
if role == Qt.DisplayRole:
if orientation == Qt.Horizontal:
return self.headers[section]
if role == Qt.DisplayRole and orientation == Qt.Horizontal:
return self.headers[section]
def data(self, index, role=Qt.DisplayRole):
row = index.row()