|
QCodeEdit 2.2
|
A specialized command to insert text. More...

Public Member Functions | |
| QDocumentInsertCommand (int l, int offset, const QString &text, QDocument *doc, QDocumentCommand *p=0) | |
| ctor | |
| virtual | ~QDocumentInsertCommand () |
| dtor | |
| virtual bool | mergeWith (const QUndoCommand *command) |
| Attempts to merge with another command. | |
| virtual void | redo () |
| Redo the command. | |
| virtual void | undo () |
| Undo the command. | |
A specialized command to insert text.
| QDocumentInsertCommand::QDocumentInsertCommand | ( | int | l, |
| int | offset, | ||
| const QString & | text, | ||
| QDocument * | doc, | ||
| QDocumentCommand * | p = 0 |
||
| ) |
ctor
| l | target line |
| offset | target text position within target line |
| text | text to insert (can contain line feeds, "\n", which will result in the creation of new lines) |
| doc | host document |
| p | parent command |
References QDocumentLine::length(), QDocument::line(), and QDocumentLine::text().
| bool QDocumentInsertCommand::mergeWith | ( | const QUndoCommand * | command | ) | [virtual] |
Attempts to merge with another command.
Command merging is not implemented.
Reimplemented from QDocumentCommand.
1.7.4