old render cleanup part 1
This commit is contained in:
38 files changed
+166
-1366
No files matched your search
@@ -51,12 +51,8 @@ public:
|
||||
Q_INVOKABLE void close();
|
||||
Q_INVOKABLE void clearError();
|
||||
|
||||
// Save current scroll position. Called from QML's scroll tracker; forwards to BookPositionStore.
|
||||
Q_INVOKABLE void saveCurrentPosition(int chunkIndex, int intraOffset, bool pageShift = false);
|
||||
|
||||
// Called from QML's PageView when its width changes. Propagates to image provider + ReadingModel
|
||||
// via the contentWidthChanged signal (wired in main.cpp).
|
||||
Q_INVOKABLE void setContentWidth(int width);
|
||||
// Save current position. Called from QML; forwards to BookPositionStore.
|
||||
Q_INVOKABLE void saveCurrentPosition(int chunkIndex, bool mangaRTL = true, bool pageShift = true);
|
||||
|
||||
signals:
|
||||
// Emitted just before replacing the current reader with a new one.
|
||||
@@ -67,7 +63,6 @@ signals:
|
||||
void bookChanged();
|
||||
void loadingChanged();
|
||||
void errorMessageChanged();
|
||||
void contentWidthChanged(int width);
|
||||
|
||||
private:
|
||||
void openImpl(const QString &filePath);
|
||||
@@ -80,7 +75,6 @@ private:
|
||||
QString m_errorMessage;
|
||||
bool m_loading = false;
|
||||
int m_openGeneration = 0;
|
||||
int m_contentWidth = 0;
|
||||
QFuture<void> m_openFuture;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user