Some refactor
This commit is contained in:
37 files changed
+1599
-981
No files matched your search
@@ -6,6 +6,7 @@
|
||||
#include <QString>
|
||||
#include <memory>
|
||||
#include "IImageLoader.h"
|
||||
#include "state/BookPositionStore.h"
|
||||
|
||||
class FormatReader;
|
||||
|
||||
@@ -35,7 +36,7 @@ public:
|
||||
ChapterRole = Qt::UserRole + 3,
|
||||
};
|
||||
|
||||
explicit ReadingModel(QObject *parent = nullptr);
|
||||
explicit ReadingModel(BookPositionStore &positions, QObject *parent = nullptr);
|
||||
~ReadingModel() override;
|
||||
|
||||
int rowCount(const QModelIndex &parent) const override;
|
||||
@@ -106,6 +107,7 @@ private:
|
||||
int m_fontSize = 0;
|
||||
qreal m_lineSpacing = 0;
|
||||
|
||||
BookPositionStore &m_positions;
|
||||
std::unique_ptr<IImageLoader> m_imageLoader;
|
||||
QFuture<void> m_measureFuture;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user