hopefully true virtual list layout

This commit is contained in:
Agel committed 2026-10-28 23:44:54 +01:00
1 parent 905c61da52
commit 6c821c6a3c
10 files changed
+522 -37

No files matched your search

+5 -2
View File
@@ -98,6 +98,7 @@ private:
void startLayoutMeasurement(int restoreChunk = 0, qreal restoreIntraOffset = 0.0);
void runRemainingLayout();
void saveCurrentPosition(int chunkIndex, qreal intraOffset = 0.0);
void ensureChunkLayout(int row) const;
FormatReader *m_reader = nullptr;
IBookImageResolver *m_imageResolver = nullptr;
@@ -106,8 +107,10 @@ private:
int m_currentPage = 0;
int m_totalPages = 0;
QStringList m_chunks;
QVector<ChunkLayoutEngine::PreparedChunk> m_preparedChunks;
QVector<ChunkLayout> m_chunkLayouts;
mutable QVector<ChunkLayoutEngine::PreparedChunk> m_preparedChunks;
mutable QVector<ChunkLayout> m_chunkLayouts;
int m_lastSyncStart = -1;
int m_lastSyncEnd = -1;
int m_layoutContentWidth = 600;
int m_layoutFontSize = 16;