Add table header.
This commit is contained in:
parent
8a875d90bd
commit
79a1a95a43
1 changed files with 6 additions and 0 deletions
|
|
@ -56,6 +56,12 @@ class GlyphDBModel(QAbstractTableModel):
|
|||
self.images[key] = image
|
||||
return image
|
||||
|
||||
def headerData(self, section, orientation, role):
|
||||
if orientation != Qt.Horizontal or role != Qt.DisplayRole:
|
||||
return None
|
||||
if section == 0:
|
||||
return 'Text'
|
||||
|
||||
def data(self, index, role):
|
||||
if index.column() == 0:
|
||||
key = self.keys[index.row()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue