QtGui/qundostack.h Source File
Go to the documentation of this file.
55 class QUndoCommandPrivate;
56 class QUndoStackPrivate;
58 #ifndef QT_NO_UNDOCOMMAND
62 QUndoCommandPrivate *d;
74 void setText(
const QString &text);
76 virtual int id()
const;
79 int childCount()
const;
87 #endif // QT_NO_UNDOCOMMAND
89 #ifndef QT_NO_UNDOSTACK
91 class Q_GUI_EXPORT QUndoStack :
public QObject
94 Q_DECLARE_PRIVATE(QUndoStack)
96 Q_PROPERTY(
int undoLimit READ undoLimit WRITE setUndoLimit)
99 explicit QUndoStack(
QObject *parent = 0);
105 bool canUndo() const;
106 bool canRedo() const;
115 QAction *createUndoAction(
QObject *parent,
117 QAction *createRedoAction(
QObject *parent,
119 #endif // QT_NO_ACTION
121 bool isActive()
const;
122 bool isClean()
const;
123 int cleanIndex()
const;
125 void beginMacro(
const QString &text);
128 void setUndoLimit(
int limit);
129 int undoLimit()
const;
135 void setIndex(
int idx);
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);
149 Q_DISABLE_COPY(QUndoStack)
153 #endif // QT_NO_UNDOSTACK
159 #endif // QUNDOSTACK_H
#define QT_BEGIN_NAMESPACE
GLuint GLuint GLsizei count