<class name="QUndoGroup" doc="/**
&lt;p&gt;The &lt;a href=&quot;QUndoGroup.html#QUndoGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QUndoGroup&lt;/tt&gt;&lt;/a&gt; class is a group of &lt;a href=&quot;QUndoStack.html&quot;&gt;&lt;tt&gt;QUndoStack&lt;/tt&gt;&lt;/a&gt; objects.&lt;/p&gt;
&lt;p&gt;For an overview of the Qt's undo framework, see the &lt;a href=&quot;%2E%2E/qundo.html&quot;&gt;overview&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;An application often has multiple undo stacks, one for each opened document. At the same time, an application usually has one undo action and one redo action, which triggers undo or redo in the active document.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QUndoGroup.html#QUndoGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QUndoGroup&lt;/tt&gt;&lt;/a&gt; is a group of &lt;a href=&quot;QUndoStack.html&quot;&gt;&lt;tt&gt;QUndoStack&lt;/tt&gt;&lt;/a&gt; objects, one of which may be active. It has an &lt;a href=&quot;QUndoGroup.html#undo()&quot;&gt;&lt;tt&gt;undo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QUndoGroup.html#redo()&quot;&gt;&lt;tt&gt;redo&lt;/tt&gt;&lt;/a&gt; slot, which calls QUndoStack::undo() and QUndoStack::redo() for the active stack. It also has the functions &lt;a href=&quot;QUndoGroup.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createUndoAction&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QUndoGroup.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createRedoAction&lt;/tt&gt;&lt;/a&gt;. The actions returned by these functions behave in the same way as those returned by QUndoStack::createUndoAction() and QUndoStack::createRedoAction() of the active stack.&lt;/p&gt;
&lt;p&gt;Stacks are added to a group with &lt;a href=&quot;QUndoGroup.html#addStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;addStack&lt;/tt&gt;&lt;/a&gt; and removed with &lt;a href=&quot;QUndoGroup.html#removeStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;removeStack&lt;/tt&gt;&lt;/a&gt;. A stack is implicitly added to a group when it is created with the group as its parent &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#QObject(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QObject&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It is the programmer's responsibility to specify which stack is active by calling QUndoStack::setActive(), usually when the associated document window receives focus. The active stack may also be set with &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;, and is returned by &lt;a href=&quot;QUndoGroup.html#activeStack()&quot;&gt;&lt;tt&gt;activeStack&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When a stack is added to a group using &lt;a href=&quot;QUndoGroup.html#addStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;addStack&lt;/tt&gt;&lt;/a&gt;, the group does not take ownership of the stack. This means the stack has to be deleted separately from the group. When a stack is deleted, it is automatically removed from a group. A stack may belong to only one group. Adding it to another group will cause it to be removed from the previous group.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QUndoGroup.html#QUndoGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QUndoGroup&lt;/tt&gt;&lt;/a&gt; is also useful in conjunction with &lt;a href=&quot;QUndoView.html&quot;&gt;&lt;tt&gt;QUndoView&lt;/tt&gt;&lt;/a&gt;. If a &lt;a href=&quot;QUndoView.html&quot;&gt;&lt;tt&gt;QUndoView&lt;/tt&gt;&lt;/a&gt; is set to watch a group using QUndoView::setGroup(), it will update itself to display the active stack.&lt;/p&gt;
 */">
    <signal name="protected final void activeStackChanged(com.trolltech.qt.gui.QUndoStack stack)" doc="/**
&lt;p&gt;This signal is emitted whenever the active stack of the group changes. This can happen when &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; or QUndoStack::setActive() is called, or when the active stack is removed form the group. &lt;tt&gt;stack&lt;/tt&gt; is the new active stack. If no stack is active, &lt;tt&gt;stack&lt;/tt&gt; is 0.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QUndoStack stack)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;, &lt;tt&gt;QUndoStack::setActive&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void canRedoChanged(boolean canRedo)" doc="/**
&lt;p&gt;This signal is emitted whenever the active stack emits QUndoStack::canRedoChanged() or the active stack changes.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;canRedo&lt;/tt&gt; is the new state, or false if the active stack is 0.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean canRedo)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QUndoStack::canRedoChanged&lt;/tt&gt;, &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void canUndoChanged(boolean canUndo)" doc="/**
&lt;p&gt;This signal is emitted whenever the active stack emits QUndoStack::canUndoChanged() or the active stack changes.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;canUndo&lt;/tt&gt; is the new state, or false if the active stack is 0.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean canUndo)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QUndoStack::canUndoChanged&lt;/tt&gt;, &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void cleanChanged(boolean clean)" doc="/**
&lt;p&gt;This signal is emitted whenever the active stack emits QUndoStack::cleanChanged() or the active stack changes.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;clean&lt;/tt&gt; is the new state, or true if the active stack is 0.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean clean)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QUndoStack::cleanChanged&lt;/tt&gt;, &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void indexChanged(int idx)" doc="/**
&lt;p&gt;This signal is emitted whenever the active stack emits QUndoStack::indexChanged() or the active stack changes.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;idx&lt;/tt&gt; is the new current index, or 0 if the active stack is 0.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int idx)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QUndoStack::indexChanged&lt;/tt&gt;, &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void redoTextChanged(java.lang.String redoText)" doc="/**
&lt;p&gt;This signal is emitted whenever the active stack emits QUndoStack::redoTextChanged() or the active stack changes.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;redoText&lt;/tt&gt; is the new state, or an empty string if the active stack is 0.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(java.lang.String redoText)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QUndoStack::redoTextChanged&lt;/tt&gt;, &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void undoTextChanged(java.lang.String undoText)" doc="/**
&lt;p&gt;This signal is emitted whenever the active stack emits QUndoStack::undoTextChanged() or the active stack changes.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;undoText&lt;/tt&gt; is the new state, or an empty string if the active stack is 0.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(java.lang.String undoText)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QUndoStack::undoTextChanged&lt;/tt&gt;, &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QUndoGroup(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Creates an empty &lt;a href=&quot;QUndoGroup.html#QUndoGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QUndoGroup&lt;/tt&gt;&lt;/a&gt; object with parent &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#addStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;addStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QUndoGroup()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QUndoGroup.html#QUndoGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QUndoGroup&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final com.trolltech.qt.gui.QUndoStack activeStack()" doc="/**
&lt;p&gt;Returns the active stack of this group.&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function returns 0.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QUndoStack::setActive&lt;/tt&gt; */"/>
    <method name="public final void addStack(com.trolltech.qt.gui.QUndoStack stack)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;stack&lt;/tt&gt; to this group. The group does not take ownership of the stack. Another way of adding a stack to a group is by specifying the group as the stack's parent &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#QObject(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QObject&lt;/tt&gt;&lt;/a&gt; in QUndoStack::QUndoStack(). In this case, the stack is deleted when the group is deleted, in the usual manner of QObjects.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#removeStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;removeStack&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#stacks()&quot;&gt;&lt;tt&gt;stacks&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QUndoStack::QUndoStack&lt;/tt&gt; */"/>
    <method name="public final boolean canRedo()" doc="/**
&lt;p&gt;Returns the value of the active stack's QUndoStack::canRedo().&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function returns false.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#canUndo()&quot;&gt;&lt;tt&gt;canUndo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean canUndo()" doc="/**
&lt;p&gt;Returns the value of the active stack's QUndoStack::canUndo().&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function returns false.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#canRedo()&quot;&gt;&lt;tt&gt;canRedo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAction createRedoAction(com.trolltech.qt.core.QObject parent, java.lang.String prefix)" doc="/**
&lt;p&gt;Creates an redo &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; object with parent &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Triggering this action will cause a call to QUndoStack::redo() on the active stack. The text of this action will always be the text of the command which will be redone in the next call to &lt;a href=&quot;QUndoGroup.html#redo()&quot;&gt;&lt;tt&gt;redo&lt;/tt&gt;&lt;/a&gt;, prefixed by &lt;tt&gt;prefix&lt;/tt&gt;. If there is no command available for redo, if the group is empty or if none of the stacks are active, this action will be disabled.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;prefix&lt;/tt&gt; is empty, the default prefix &amp;quot;Undo&amp;quot; is used.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createUndoAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#canRedo()&quot;&gt;&lt;tt&gt;canRedo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QUndoCommand::text&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAction createRedoAction(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QUndoGroup.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createRedoAction&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, QString()). */"/>
    <method name="public final com.trolltech.qt.gui.QAction createUndoAction(com.trolltech.qt.core.QObject parent, java.lang.String prefix)" doc="/**
&lt;p&gt;Creates an undo &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; object with parent &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Triggering this action will cause a call to QUndoStack::undo() on the active stack. The text of this action will always be the text of the command which will be undone in the next call to &lt;a href=&quot;QUndoGroup.html#undo()&quot;&gt;&lt;tt&gt;undo&lt;/tt&gt;&lt;/a&gt;, prefixed by &lt;tt&gt;prefix&lt;/tt&gt;. If there is no command available for undo, if the group is empty or if none of the stacks are active, this action will be disabled.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;prefix&lt;/tt&gt; is empty, the default prefix &amp;quot;Undo&amp;quot; is used.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createRedoAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#canUndo()&quot;&gt;&lt;tt&gt;canUndo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QUndoCommand::text&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAction createUndoAction(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QUndoGroup.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createUndoAction&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, QString()). */"/>
    <method name="public final boolean isClean()" doc="/**
&lt;p&gt;Returns the value of the active stack's QUndoStack::isClean().&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function returns true.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void redo()" doc="/**
&lt;p&gt;Calls QUndoStack::redo() on the active stack.&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#undo()&quot;&gt;&lt;tt&gt;undo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#canRedo()&quot;&gt;&lt;tt&gt;canRedo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String redoText()" doc="/**
&lt;p&gt;Returns the value of the active stack's QUndoStack::redoText().&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#undoText()&quot;&gt;&lt;tt&gt;undoText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeStack(com.trolltech.qt.gui.QUndoStack stack)" doc="/**
&lt;p&gt;Removes &lt;tt&gt;stack&lt;/tt&gt; from this group. If the stack was the active stack in the group, the active stack becomes 0.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#addStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;addStack&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#stacks()&quot;&gt;&lt;tt&gt;stacks&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QUndoStack::~QUndoStack&lt;/tt&gt; */"/>
    <method name="public final void setActiveStack(com.trolltech.qt.gui.QUndoStack stack)" doc="/**
&lt;p&gt;Sets the active stack of this group to &lt;tt&gt;stack&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the stack is not a member of this group, this function does nothing.&lt;/p&gt;
&lt;p&gt;Synonymous with calling QUndoStack::setActive() on &lt;tt&gt;stack&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The actions returned by &lt;a href=&quot;QUndoGroup.html#createUndoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createUndoAction&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QUndoGroup.html#createRedoAction(com.trolltech.qt.core.QObject, java.lang.String)&quot;&gt;&lt;tt&gt;createRedoAction&lt;/tt&gt;&lt;/a&gt; will now behave in the same way as those returned by &lt;tt&gt;stack&lt;/tt&gt;'s QUndoStack::createUndoAction() and QUndoStack::createRedoAction().&lt;/p&gt;

@see &lt;tt&gt;QUndoStack::setActive&lt;/tt&gt;
@see &lt;a href=&quot;QUndoGroup.html#activeStack()&quot;&gt;&lt;tt&gt;activeStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QUndoStack&gt; stacks()" doc="/**
&lt;p&gt;Returns a list of stacks in this group.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#addStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;addStack&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#removeStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;removeStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void undo()" doc="/**
&lt;p&gt;Calls QUndoStack::undo() on the active stack.&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#redo()&quot;&gt;&lt;tt&gt;redo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#canUndo()&quot;&gt;&lt;tt&gt;canUndo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String undoText()" doc="/**
&lt;p&gt;Returns the value of the active stack's QUndoStack::undoText().&lt;/p&gt;
&lt;p&gt;If none of the stacks are active, or if the group is empty, this function returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QUndoGroup.html#redoText()&quot;&gt;&lt;tt&gt;redoText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUndoGroup.html#setActiveStack(com.trolltech.qt.gui.QUndoStack)&quot;&gt;&lt;tt&gt;setActiveStack&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
