Manga rendering mode

This commit is contained in:
Agel committed 2026-05-22 12:10:42 +02:00
1 parent 9167f10b1c
commit e043ded6b1
15 files changed
+935 -253

No files matched your search

+5 -1
View File
@@ -13,16 +13,20 @@ BookPosition BookPositionStore::load(const QByteArray &contentMd5)
BookPosition pos;
pos.chunkIndex = d.value(QStringLiteral("chunkIndex"), 0).toInt();
pos.intraOffset = d.value(QStringLiteral("intraOffset"), 0).toInt();
pos.pageShift = d.value(QStringLiteral("pageShift"), true).toBool();
pos.mangaRTL = d.value(QStringLiteral("mangaRTL"), true).toBool();
return pos;
}
void BookPositionStore::save(const QByteArray &contentMd5, int chunkIndex, int intraOffset)
void BookPositionStore::save(const QByteArray &contentMd5, int chunkIndex, int intraOffset, bool mangaRTL, bool pageShift)
{
if (contentMd5.isEmpty())
return;
m_state.saveSection(sectionKey(contentMd5), {
{QStringLiteral("chunkIndex"), chunkIndex},
{QStringLiteral("intraOffset"), intraOffset},
{QStringLiteral("pageShift"), pageShift},
{QStringLiteral("mangaRTL"), mangaRTL},
});
}