add library with reading history, progress tracking, and view persistence

This commit is contained in:
Agel committed 2026-03-20 11:20:16 +01:00
1 parent c62733bc26
commit c4046d8533
15 files changed
+685 -40

No files matched your search

+4 -4
View File
@@ -186,12 +186,12 @@ private slots:
FakeReader reader;
model.setReader(&reader);
// Chapter 0 of 3 → 1/3
QCOMPARE(model.progress(), 1.0 / 3.0);
// Chapter 0 of 3, no scroll → 0/3 = 0.0
QCOMPARE(model.progress(), 0.0);
model.goToChapter(2);
// Chapter 2 of 3 → 3/3 = 1.0
QCOMPARE(model.progress(), 1.0);
// Chapter 2 of 3, no scroll → 2/3
QCOMPARE(model.progress(), 2.0 / 3.0);
}
void setReaderNull()