Keep editing while a project saves; saves, reloads and opens queue behind one writer (12.13b)
This commit is contained in:
1 parent
838d5b1459
commit
d4c065fa77
11 files changed
+1027
-85
No files matched your search
@@ -26,6 +26,10 @@ public:
|
||||
bool isModified() const { return m_revision != m_savedRevision; }
|
||||
int undoCount() const { return int(m_past.size()); }
|
||||
void markSaved() { m_savedRevision = m_revision; }
|
||||
// The document now, for a save that finishes later.
|
||||
QUuid currentRevision() const { return m_revision; }
|
||||
// A save of `saved` finished; later edits stay modified.
|
||||
void markSaved(QUuid saved) { m_savedRevision = saved; }
|
||||
void reset();
|
||||
// Takes the steps a staged copy of this history recorded.
|
||||
void adopt(DocumentHistory &&staged) noexcept;
|
||||
|
||||
Reference in new issue
Block a user