WIP V3: editing header rows works

This commit is contained in:
Keith Edmunds 2023-11-12 22:35:44 +00:00
parent bfc7a8508c
commit 0f77cef37a

View File

@ -375,6 +375,11 @@ class PlaylistModel(QAbstractTableModel):
Return text for editing
"""
# If this is a header row and we're being asked for the
# HEADER_NOTES_COLUMN, return the note value
if self.is_header_row(row) and column == HEADER_NOTES_COLUMN:
return QVariant(prd.note)
if column == Col.TITLE.value:
return QVariant(prd.title)
if column == Col.ARTIST.value: