QUndoStack Class Reference
[QtGui module]
Inherits QObject.
Methods
- __init__ (self, QObject parent = None)
- beginMacro (self, QString)
- bool canRedo (self)
- bool canUndo (self)
- int cleanIndex (self)
- clear (self)
- QUndoCommand command (self, int)
- int count (self)
- QAction createRedoAction (self, QObject, QString prefix = QString())
- QAction createUndoAction (self, QObject, QString prefix = QString())
- endMacro (self)
- int index (self)
- bool isActive (self)
- bool isClean (self)
- push (self, QUndoCommand)
- redo (self)
- QString redoText (self)
- setActive (self, bool active = True)
- setClean (self)
- setIndex (self, int)
- setUndoLimit (self, int)
- QString text (self, int)
- undo (self)
- int undoLimit (self)
- QString undoText (self)
Special Methods
Qt Signals
Detailed Description
Method Documentation
QUndoStack.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QUndoStack.beginMacro (self, QString)
bool QUndoStack.canRedo (self)
bool QUndoStack.canUndo (self)
int QUndoStack.cleanIndex (self)
QUndoStack.clear (self)
QUndoCommand QUndoStack.command (self, int)
int QUndoStack.count (self)
QAction QUndoStack.createRedoAction (self, QObject, QString prefix = QString())
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
QAction QUndoStack.createUndoAction (self, QObject, QString prefix = QString())
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
QUndoStack.endMacro (self)
int QUndoStack.index (self)
bool QUndoStack.isActive (self)
bool QUndoStack.isClean (self)
The QUndoCommand argument has it's ownership transferred to Qt.
QUndoStack.redo (self)
This method is also a Qt slot with the C++ signature void redo().
QString QUndoStack.redoText (self)
QUndoStack.setActive (self, bool active = True)
This method is also a Qt slot with the C++ signature void setActive(bool = 1).
QUndoStack.setClean (self)
This method is also a Qt slot with the C++ signature void setClean().
QUndoStack.setIndex (self, int)
This method is also a Qt slot with the C++ signature void setIndex(int).
QUndoStack.setUndoLimit (self, int)
QString QUndoStack.text (self, int)
QUndoStack.undo (self)
This method is also a Qt slot with the C++ signature void undo().
int QUndoStack.undoLimit (self)
QString QUndoStack.undoText (self)
QUndoStack.__len__ (self)
Qt Signal Documentation
void canRedoChanged (bool)
This is the default overload of this signal.
void canUndoChanged (bool)
This is the default overload of this signal.
void cleanChanged (bool)
This is the default overload of this signal.
void indexChanged (int)
This is the default overload of this signal.
void redoTextChanged (const QString&)
This is the default overload of this signal.
void undoTextChanged (const QString&)
This is the default overload of this signal.