Esempio n. 1
0
 def headerData(self, section, orientation, role=Qt.DisplayRole):
     if orientation == Qt.Vertical and role == Qt.DisplayRole:
         return section + 1
     return QSortFilterProxyModel.headerData(self, section, orientation, role)
Esempio n. 2
0
 def headerData(self, section, orientation, role=Qt.DisplayRole):
     if orientation == Qt.Vertical and role == Qt.DisplayRole:
         return section + 1
     return QSortFilterProxyModel.headerData(self, section, orientation, role)