reintroduced epub support
This commit is contained in:
49 files changed
+5048
-205
No files matched your search
@@ -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},
|
||||
|
||||
Reference in new issue
Block a user