Add format text to history view
This commit is contained in:
5 files changed
+20
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user