hide chapters for formats that doesn't support it

This commit is contained in:
Agel committed 2026-03-19 22:34:34 +01:00
1 parent 353c82f6d6
commit cf1721f916
4 files changed
+45 -3

No files matched your search

+2
View File
@@ -13,6 +13,7 @@ class ReadingModel : public QAbstractListModel {
Q_PROPERTY(int currentChapter READ currentChapter NOTIFY chapterChanged)
Q_PROPERTY(int totalChapters READ totalChapters NOTIFY totalChaptersChanged)
Q_PROPERTY(double progress READ progress NOTIFY chapterChanged)
Q_PROPERTY(bool hasChapters READ hasChapters NOTIFY totalChaptersChanged)
public:
enum Roles {
@@ -30,6 +31,7 @@ public:
int currentChapter() const;
int totalChapters() const;
double progress() const;
bool hasChapters() const;
void setReader(FormatReader *reader);
Q_INVOKABLE void nextChapter();