summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-05-10 14:35:20 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-05-11 17:38:23 +0000
commit6bcd27b957a5ffcfe7665b0979679510e3b2ae3d (patch)
treef6e0d29724b209ff62d06a72e8b2dc5192602b44
parent37a983cd98afb3ae1e7295a5e2fd0929542865f9 (diff)
Document how to save an application using QUndoStack
Change-Id: Ic61374d5b6ce395dfe8d0b30813ea437b5e16e9d Task-number: QTBUG-52497 Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
-rw-r--r--src/widgets/util/qundostack.cpp2
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.