Merge branch 'remove-chapters'

# Conflicts:
#	src/backend/ReadingModel.h
#	src/qml/components/Footer.qml
#	tests/ReadingModelTest.cpp
This commit is contained in:
Agel committed 2026-03-19 22:43:02 +01:00
commit 43e75d3d8f
4 files changed
+43 -1

No files matched your search

+2
View File
@@ -16,6 +16,7 @@ class ReadingModel : public QAbstractListModel {
Q_PROPERTY(double progress READ progress NOTIFY chapterChanged)
Q_PROPERTY(int currentPage READ currentPage NOTIFY currentPageChanged)
Q_PROPERTY(int totalPages READ totalPages NOTIFY totalPagesChanged)
Q_PROPERTY(bool hasChapters READ hasChapters NOTIFY totalChaptersChanged)
public:
enum Roles {
@@ -35,6 +36,7 @@ public:
double progress() const;
int currentPage() const;
int totalPages() const;
bool hasChapters() const;
void setReader(FormatReader *reader);
// Called from QML on resize