ChangeSet Class
(Utils::ChangeSet)Public Types
Public Functions
ChangeSet() | |
ChangeSet(const QList<EditOp> &operations) | |
void | apply(QString *s) |
void | apply(QTextCursor *textCursor) |
void | clear() |
bool | copy(const Range &range, int to) |
bool | copy(int start, int end, int to) |
bool | flip(const Range &range1, const Range &range2) |
bool | flip(int start1, int end1, int start2, int end2) |
bool | hadErrors() |
bool | insert(int pos, const QString &text) |
bool | isEmpty() const |
bool | move(const Range &range, int to) |
bool | move(int start, int end, int to) |
QList<EditOp> | operationList() const |
bool | remove(const Range &range) |
bool | remove(int start, int end) |
bool | replace(const Range &range, const QString &replacement) |
bool | replace(int start, int end, const QString &replacement) |
Member Function Documentation
ChangeSet::ChangeSet()
Default constructs an instance of ChangeSet.
ChangeSet::ChangeSet(const QList<EditOp> &operations)
Default constructs an instance of ChangeSet.