Add format text to history view

This commit is contained in:
Agel committed 2026-04-20 11:54:57 +02:00
1 parent 232d86716d
commit 94d4fe762c
5 files changed
+20

No files matched your search

+3
View File
@@ -10,6 +10,7 @@ HistoryModel::HistoryModel(ReaderFactory &factory, QObject *parent)
m_roleNames[FilePathRole] = "filePath";
m_roleNames[TitleRole] = "title";
m_roleNames[AuthorRole] = "author";
m_roleNames[FormatRole] = "format";
m_roleNames[ProgressRole] = "progress";
m_roleNames[LastOpenedRole] = "lastOpened";
m_roleNames[CoverImageUrlRole] = "coverImageUrl";
@@ -43,6 +44,8 @@ QVariant HistoryModel::data(const QModelIndex &index, int role) const
return book->title();
case AuthorRole:
return book->author();
case FormatRole:
return book->format();
case ProgressRole:
return book->progress();
case LastOpenedRole: