Qt 4.8
|
#include <qtextdocument_p.h>
Public Types | |
enum | Command { Inserted = 0, Removed = 1, CharFormatChanged = 2, BlockFormatChanged = 3, BlockInserted = 4, BlockRemoved = 5, BlockAdded = 6, BlockDeleted = 7, GroupFormatChange = 8, CursorMoved = 9, Custom = 256 } |
enum | Operation { KeepCursor = 0, MoveCursor = 1 } |
Public Functions | |
bool | tryMerge (const QTextUndoCommand &other) |
Public Variables | |
union { | |
int blockFormat | |
QAbstractUndoItem * custom | |
quint32 length | |
int objectIndex | |
}; | |
uint | block_end: 1 |
uint | block_padding: 6 |
uint | block_part: 1 |
quint16 | command |
int | format |
quint8 | operation |
quint32 | pos |
quint32 | revision |
quint32 | strPos |
Definition at line 123 of file qtextdocument_p.h.
Enumerator | |
---|---|
Inserted | |
Removed | |
CharFormatChanged | |
BlockFormatChanged | |
BlockInserted | |
BlockRemoved | |
BlockAdded | |
BlockDeleted | |
GroupFormatChange | |
CursorMoved | |
Custom |
Definition at line 126 of file qtextdocument_p.h.
bool QTextUndoCommand::tryMerge | ( | const QTextUndoCommand & | other | ) |
Definition at line 145 of file qtextdocument_p.cpp.
Referenced by QTextDocumentPrivate::appendUndoItem().
union { ... } |
uint QTextUndoCommand::block_end |
Definition at line 145 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem().
uint QTextUndoCommand::block_padding |
Definition at line 146 of file qtextdocument_p.h.
uint QTextUndoCommand::block_part |
Definition at line 144 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem().
int QTextUndoCommand::blockFormat |
Definition at line 152 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem(), and QTextDocumentPrivate::undoRedo().
quint16 QTextUndoCommand::command |
Definition at line 143 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem(), QTextDocumentPrivate::clearUndoRedoStacks(), tryMerge(), and QTextDocumentPrivate::undoRedo().
QAbstractUndoItem* QTextUndoCommand::custom |
Definition at line 154 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem(), QTextDocumentPrivate::clearUndoRedoStacks(), and QTextDocumentPrivate::undoRedo().
int QTextUndoCommand::format |
Definition at line 148 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem(), tryMerge(), and QTextDocumentPrivate::undoRedo().
quint32 QTextUndoCommand::length |
Definition at line 153 of file qtextdocument_p.h.
Referenced by tryMerge(), and QTextDocumentPrivate::undoRedo().
int QTextUndoCommand::objectIndex |
Definition at line 155 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::undoRedo().
quint8 QTextUndoCommand::operation |
Definition at line 147 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem(), and QTextDocumentPrivate::undoRedo().
quint32 QTextUndoCommand::pos |
Definition at line 150 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem(), tryMerge(), and QTextDocumentPrivate::undoRedo().
quint32 QTextUndoCommand::revision |
Definition at line 157 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::undoRedo().
quint32 QTextUndoCommand::strPos |
Definition at line 149 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate::appendUndoItem(), tryMerge(), and QTextDocumentPrivate::undoRedo().