7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qobject.h>
9#include <QtCore/qstring.h>
17class QUndoStackPrivate;
35 bool isObsolete()
const;
36 void setObsolete(
bool obsolete);
38 virtual int id()
const;
41 int childCount()
const;
46 friend class QUndoStack;
49#if QT_CONFIG(undostack)
51class Q_GUI_EXPORT QUndoStack :
public QObject
54 Q_DECLARE_PRIVATE(QUndoStack)
56 Q_PROPERTY(
int undoLimit READ undoLimit WRITE setUndoLimit)
57 Q_PROPERTY(
bool canUndo READ canUndo NOTIFY canUndoChanged)
58 Q_PROPERTY(
bool canRedo READ canRedo NOTIFY canRedoChanged)
61 Q_PROPERTY(
bool clean READ isClean NOTIFY cleanChanged)
86 int cleanIndex()
const;
91 void setUndoLimit(
int limit);
92 int undoLimit()
const;
102 void setActive(
bool active =
true);
105 void indexChanged(
int idx);
106 void cleanChanged(
bool clean);
107 void canUndoChanged(
bool canUndo);
108 void canRedoChanged(
bool canRedo);
109 void undoTextChanged(
const QString &undoText);
110 void redoTextChanged(
const QString &redoText);
113 Q_DISABLE_COPY(QUndoStack)
The QAction class provides an abstraction for user commands that can be added to different user inter...
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QUndoGroup class is a group of QUndoStack objects.
Combined button and popup list for selecting options.
static void setIndex(int *index, int candidate, int min, int max, bool isIncreasing)
GLenum GLenum GLsizei count
#define QT_REQUIRE_CONFIG(feature)
insertRed setText("insert red text")
stack beginMacro("insert red text")
[3]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent