From 6e86d6fcfba57abb37f0369a0382e61b4f6c161e Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 3 Apr 2018 11:14:09 +0200 Subject: Add missing documentation for QUndoStack properties They were forgotten in 59e9c4956cfc5163c1fc411c6c567a4c753b4e9a. Task-number: QTBUG-67457 Change-Id: I58c576598d88d3dd1fa320628ad80689d3f8b8de Reviewed-by: Friedemann Kleint Reviewed-by: Venugopal Shivashankar --- src/widgets/util/qundostack.cpp | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'src/widgets/util') diff --git a/src/widgets/util/qundostack.cpp b/src/widgets/util/qundostack.cpp index b371e903a6..e928b9fe37 100644 --- a/src/widgets/util/qundostack.cpp +++ b/src/widgets/util/qundostack.cpp @@ -741,6 +741,17 @@ void QUndoStack::resetClean() emit cleanChanged(false); } +/*! + \since 5.12 + \property QUndoStack::clean + \brief the clean status of this stack. + + This property indicates whether or not the stack is clean. For example, a + stack is clean when a document has been saved. + + \sa isClean(), setClean(), resetClean(), cleanIndex() +*/ + /*! If the stack is in the clean state, returns \c true; otherwise returns \c false. @@ -939,6 +950,17 @@ void QUndoStack::setIndex(int idx) d->setIndex(idx, false); } +/*! + \since 5.12 + \property QUndoStack::canUndo + \brief whether this stack can undo. + + This property indicates whether or not there is a command that can be + undone. + + \sa canUndo(), index(), canRedo() +*/ + /*! Returns \c true if there is a command available for undo; otherwise returns \c false. @@ -958,6 +980,17 @@ bool QUndoStack::canUndo() const return d->index > 0; } +/*! + \since 5.12 + \property QUndoStack::canRedo + \brief whether this stack can redo. + + This property indicates whether or not there is a command that can be + redone. + + \sa canRedo(), index(), canUndo() +*/ + /*! Returns \c true if there is a command available for redo; otherwise returns \c false. @@ -977,6 +1010,17 @@ bool QUndoStack::canRedo() const return d->index < d->command_list.size(); } +/*! + \since 5.12 + \property QUndoStack::undoText + \brief the undo text of the next command that is undone. + + This property holds the text of the command which will be undone in the + next call to undo(). + + \sa undoText(), QUndoCommand::actionText(), redoText() +*/ + /*! Returns the text of the command which will be undone in the next call to undo(). @@ -993,6 +1037,17 @@ QString QUndoStack::undoText() const return QString(); } +/*! + \since 5.12 + \property QUndoStack::redoText + \brief the redo text of the next command that is redone. + + This property holds the text of the command which will be redone in the + next call to redo(). + + \sa redoText(), QUndoCommand::actionText(), undoText() +*/ + /*! Returns the text of the command which will be redone in the next call to redo(). -- cgit v1.2.3