ChangeSet Class | Extending Qt Creator Manual

Extending Qt Creator Manual | ChangeSet

Extending Qt Creator Manual 4.6.0

# ChangeSet Class

(Utils::ChangeSet)

- List of all members, including inherited members

## Public Types

class | EditOp
class | Range

## 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.

### void ChangeSet::apply(QString *s)

### void ChangeSet::apply(QTextCursor *textCursor)

### void ChangeSet::clear()

### bool ChangeSet::copy(const Range &range, int to)

### bool ChangeSet::copy(int start, int end, int to)

### bool ChangeSet::flip(const Range &range1, const Range &range2)

### bool ChangeSet::flip(int start1, int end1, int start2, int end2)

### bool ChangeSet::hadErrors()

### bool ChangeSet::insert(int pos, const QString &text)

### bool ChangeSet::isEmpty() const

### bool ChangeSet::move(const Range &range, int to)

### bool ChangeSet::move(int start, int end, int to)

### QList<EditOp> ChangeSet::operationList() const

### bool ChangeSet::remove(const Range &range)

### bool ChangeSet::remove(int start, int end)

### bool ChangeSet::replace(const Range &range, const QString &replacement)

### bool ChangeSet::replace(int start, int end, const QString &replacement)