Header: | #include <QSPatch> |
enum | Type { Null, Insert, Remove, Update, Move } |
QSPatch() | |
QSPatch(Type type, int from = 0, int to = 0, int count = 0) | |
QSPatch(Type type, int from, int to, int count, const QVariantMap & data) | |
QSPatch(Type type, int from, int to, int count, const QVariantList & data) | |
QSPatch(const QSPatch &) | |
~QSPatch() | |
bool | canMerge(const QSPatch & other) const |
int | count() const |
QVariantList | data() const |
int | from() const |
bool | isNull() const |
QSPatch & | merge(const QSPatch & other) |
QSPatch | merged(const QSPatch & other) const |
void | setCount(int count) |
void | setData(const QVariantList & data) |
void | setData(const QVariantMap & data) |
void | setFrom(int from) |
void | setTo(int to) |
void | setType(const QSPatch::Type & type) |
int | to() const |
QSPatch::Type | type() const |
QSPatch & | operator=(const QSPatch &) |
bool | operator==(const QSPatch & rhs) const |
QSPatch | createRemove(int from, int to) |
QSPatch | createUpdate(int index, const QVariantMap & diff) |
typedef | QSPatchSet |
QSPatch is a data structure to hold the changes to be applied on other QSPatchable object. Usually you don't need to manipulate this object directly.
See also setCount().
[static]
QSPatch QSPatch::createRemove(int from, int to)[static]
QSPatch QSPatch::createUpdate(int index, const QVariantMap & diff)See also setData().
See also setFrom().
See also count().
See also data().
See also from().
See also to().
See also type().
See also setTo().
See also setType().