a bit of refactor
This commit is contained in:
19 files changed
+546
-232
No files matched your search
@@ -6,6 +6,8 @@
|
||||
#include <QStringList>
|
||||
#include <QVector>
|
||||
|
||||
#include "IChunkMeasurer.h"
|
||||
|
||||
class FormatReader;
|
||||
|
||||
class ReadingModel : public QAbstractListModel {
|
||||
@@ -38,6 +40,7 @@ public:
|
||||
int totalPages() const;
|
||||
bool hasChapters() const;
|
||||
void setReader(FormatReader *reader);
|
||||
void setChunkMeasurer(IChunkMeasurer *measurer);
|
||||
|
||||
// Called from QML on resize
|
||||
Q_INVOKABLE void setViewportSize(qreal width, qreal height);
|
||||
@@ -61,6 +64,7 @@ private:
|
||||
void recalculateCurrentPage();
|
||||
|
||||
FormatReader *m_reader = nullptr;
|
||||
IChunkMeasurer *m_chunkMeasurer = nullptr;
|
||||
int m_currentChapter = 0;
|
||||
int m_totalChapters = 0;
|
||||
int m_currentPage = 0;
|
||||
|
||||
Reference in new issue
Block a user