Ejemplo n.º 1
0
 def headerData(self, section, orientation, role=Qt.DisplayRole):
     if role == Qt.DisplayRole and orientation == Qt.Horizontal:
         try:
             return self.COLUMN_HEADERS[section]
         except IndexError:
             pass
     return QAbstractTableModel.headerData(self, section, orientation, role)
Ejemplo n.º 2
0
 def headerData(self,
                section,
                orientation,
                role=Qt.ItemDataRole.DisplayRole):
     if orientation == Qt.Orientation.Horizontal and role == Qt.ItemDataRole.DisplayRole:
         return _('Font family') if section == 1 else _('Embedded')
     return QAbstractTableModel.headerData(self, section, orientation, role)
Ejemplo n.º 3
0
 def headerData(self, section, orientation, role=Qt.DisplayRole):
     if role == Qt.DisplayRole and orientation == Qt.Horizontal:
         try:
             return self.COLUMN_HEADERS[section]
         except IndexError:
             pass
     return QAbstractTableModel.headerData(self, section, orientation, role)
Ejemplo n.º 4
0
 def headerData(self, section, orientation, role=Qt.DisplayRole):
     if orientation == Qt.Horizontal and role == Qt.DisplayRole:
         return _('Font family') if section == 1 else _('Embedded')
     return QAbstractTableModel.headerData(self, section, orientation, role)