reintroduced epub support

This commit is contained in:
Agel committed 2026-10-25 19:59:23 +01:00
1 parent 49a959a89d
commit d14170a68f
49 files changed
+5048 -205

No files matched your search

+2 -2
View File
@@ -11,8 +11,8 @@ BookPosition BookPositionStore::load(const QByteArray &contentMd5)
return {};
const QVariantMap d = m_state.loadSection(sectionKey(contentMd5));
BookPosition pos;
pos.chapterIndex = d.value(QStringLiteral("chapterIndex"), 0).toInt();
pos.chunkIndex = d.value(QStringLiteral("chunkIndex"), 0).toInt();
pos.intraOffset = d.value(QStringLiteral("intraOffset"), 0.0).toReal();
pos.progress = d.value(QStringLiteral("progress"), 0.0).toReal();
pos.pageShift = d.value(QStringLiteral("pageShift"), true).toBool();
pos.mangaRTL = d.value(QStringLiteral("mangaRTL"), true).toBool();
@@ -24,8 +24,8 @@ void BookPositionStore::save(const QByteArray &contentMd5, const BookPosition &p
if (contentMd5.isEmpty())
return;
m_state.saveSection(sectionKey(contentMd5), {
{QStringLiteral("chapterIndex"), pos.chapterIndex},
{QStringLiteral("chunkIndex"), pos.chunkIndex},
{QStringLiteral("intraOffset"), pos.intraOffset},
{QStringLiteral("progress"), pos.progress},
{QStringLiteral("pageShift"), pos.pageShift},
{QStringLiteral("mangaRTL"), pos.mangaRTL},