diff options
author | Liang Qi <[email protected]> | 2016-05-19 17:50:46 +0000 |
---|---|---|
committer | The Qt Project <[email protected]> | 2016-05-19 17:50:46 +0000 |
commit | 1f8bc502c8d1f9b92cf13c4aefc5f76607f474ab (patch) | |
tree | bf6d5cebae9c680d2db331c536b88c9a1e684e3d /src/widgets/util/qundostack.cpp | |
parent | b98f599948ddc0380e3392aab593fd426760d0f0 (diff) | |
parent | 818014b449ef996099b4795a82f09651cf1c0129 (diff) |
Merge "Merge remote-tracking branch 'origin/5.6' into 5.7" into refs/staging/5.7
Diffstat (limited to 'src/widgets/util/qundostack.cpp')
-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 1a3ff587933..307debc03f6 100644 --- a/src/widgets/util/qundostack.cpp +++ b/src/widgets/util/qundostack.cpp @@ -629,6 +629,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. |