Commit 6bcd27b9 authored by Mitch Curtis's avatar Mitch Curtis
Browse files

Document how to save an application using QUndoStack


Change-Id: Ic61374d5b6ce395dfe8d0b30813ea437b5e16e9d
Task-number: QTBUG-52497
Reviewed-by: default avatarTopi Reiniö <topi.reinio@theqtcompany.com>
Showing with 2 additions and 0 deletions
...@@ -623,6 +623,8 @@ void QUndoStack::push(QUndoCommand *cmd) ...@@ -623,6 +623,8 @@ void QUndoStack::push(QUndoCommand *cmd)
Marks the stack as clean and emits cleanChanged() if the stack was Marks the stack as clean and emits cleanChanged() if the stack was
not already clean. not already clean.
This is typically called when a document is saved, for example.
Whenever the stack returns to this state through the use of undo/redo Whenever the stack returns to this state through the use of undo/redo
commands, it emits the signal cleanChanged(). This signal is also commands, it emits the signal cleanChanged(). This signal is also
emitted when the stack leaves the clean state. emitted when the stack leaves the clean state.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment