22 Q_DECLARE_PRIVATE(QUndoGroup)
25 explicit QUndoGroup(QObject *parent =
nullptr);
28 void addStack(QUndoStack *stack);
29 void removeStack(QUndoStack *stack);
30 QList<QUndoStack*> stacks()
const;
31 QUndoStack *activeStack()
const;
34 QAction *createUndoAction(QObject *parent,
const QString &prefix = QString())
const;
35 QAction *createRedoAction(QObject *parent,
const QString &prefix = QString())
const;
40 QString undoText()
const;
41 QString redoText()
const;
47 void setActiveStack(QUndoStack *stack);
50 void activeStackChanged(QUndoStack *stack);
51 void indexChanged(
int idx);
52 void cleanChanged(
bool clean);
53 void canUndoChanged(
bool canUndo);
54 void canRedoChanged(
bool canRedo);
55 void undoTextChanged(
const QString &undoText);
56 void redoTextChanged(
const QString &redoText);
59 Q_DISABLE_COPY(QUndoGroup)