fix: prevent images overriding content when changing pages
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
@ -19,6 +19,14 @@ class ProjectDescriptionPage final : public QTextBrowser {
|
||||
|
||||
void setMetaEntry(QString entry);
|
||||
|
||||
public slots:
|
||||
/** Flushes the current processing happening in the page.
|
||||
*
|
||||
* Should be called when changing the page's content entirely, to
|
||||
* prevent old tasks from changing the new content.
|
||||
*/
|
||||
void flush();
|
||||
|
||||
private:
|
||||
shared_qobject_ptr<VariableSizedImageObject> m_image_text_object;
|
||||
};
|
||||
|
Reference in New Issue
Block a user