45 #include <QtCore/qobject.h> 46 #include <QtCore/qstring.h> 58 #ifndef QT_NO_UNDOCOMMAND 76 virtual int id()
const;
79 int childCount()
const;
87 #endif // QT_NO_UNDOCOMMAND 89 #ifndef QT_NO_UNDOSTACK 99 explicit QUndoStack(
QObject *parent = 0);
105 bool canUndo() const;
106 bool canRedo() const;
119 #endif // QT_NO_ACTION 121 bool isActive()
const;
122 bool isClean()
const;
123 int cleanIndex()
const;
128 void setUndoLimit(
int limit);
129 int undoLimit()
const;
138 void setActive(
bool active =
true);
141 void indexChanged(
int idx);
142 void cleanChanged(
bool clean);
143 void canUndoChanged(
bool canUndo);
144 void canRedoChanged(
bool canRedo);
145 void undoTextChanged(
const QString &undoText);
146 void redoTextChanged(
const QString &redoText);
153 #endif // QT_NO_UNDOSTACK 159 #endif // QUNDOSTACK_H #define QT_END_NAMESPACE
This macro expands to.
static void clear(QVariant::Private *d)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
The QUndoGroup class is a group of QUndoStack objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QUndoStack class is a stack of QUndoCommand objects.
static void setIndex(int *index, int candidate, int min, int max, bool isIncreasing)
#define Q_DECLARE_PRIVATE(Class)
The QUndoCommand class is the base class of all commands stored on a QUndoStack.
The QAction class provides an abstract user interface action that can be inserted into widgets...