diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-05-10 14:35:20 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2016-05-11 17:38:23 +0000 |
commit | 6bcd27b957a5ffcfe7665b0979679510e3b2ae3d (patch) | |
tree | f6e0d29724b209ff62d06a72e8b2dc5192602b44 /src/widgets | |
parent | 37a983cd98afb3ae1e7295a5e2fd0929542865f9 (diff) |
Document how to save an application using QUndoStack
Change-Id: Ic61374d5b6ce395dfe8d0b30813ea437b5e16e9d
Task-number: QTBUG-52497
Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/util/qundostack.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/util/qundostack.cpp b/src/widgets/util/qundostack.cpp index 5bcfa57b37..bd41fb60c1 100644 --- a/src/widgets/util/qundostack.cpp +++ b/src/widgets/util/qundostack.cpp @@ -623,6 +623,8 @@ void QUndoStack::push(QUndoCommand *cmd) Marks the stack as clean and emits cleanChanged() if the stack was 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 commands, it emits the signal cleanChanged(). This signal is also emitted when the stack leaves the clean state. |