hopefully true virtual list layout
This commit is contained in:
10 files changed
+522
-37
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user