diff options
Diffstat (limited to 'tests/auto/shared/testmodel.h')
-rw-r--r-- | tests/auto/shared/testmodel.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/shared/testmodel.h b/tests/auto/shared/testmodel.h index b1d9308e..d0a7e6e4 100644 --- a/tests/auto/shared/testmodel.h +++ b/tests/auto/shared/testmodel.h @@ -175,12 +175,12 @@ public: bool setData(const QModelIndex &index, const QVariant &value, int role) { Q_UNUSED(value); - QVector<int> changedRole(1, role); + QList<int> changedRole(1, role); emit dataChanged(index, index, changedRole); return true; } - void groupedSetData(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles) + void groupedSetData(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList<int> &roles) { emit dataChanged(topLeft, bottomRight, roles); } @@ -243,12 +243,12 @@ public: Node *dest = (Node *)destinationParent.internalPointer(); if (!dest) dest = tree; - QVector<Node *> buffer = src->children.mid(sourceRow, count); + QList<Node *> buffer = src->children.mid(sourceRow, count); if (src != dest) { src->removeRows(sourceRow, count, true /* keep alive */); dest->addRows(destinationChild, count); } else { - QVector<Node *> &c = dest->children; + QList<Node *> &c = dest->children; if (sourceRow < destinationChild) { memmove(&c[sourceRow], &c[sourceRow + count], sizeof(Node *) * (destinationChild - sourceRow - count)); destinationChild -= count; @@ -280,7 +280,7 @@ public: struct Node { Node *parent; - QVector<Node *> children; + QList<Node *> children; Node(int rows, Node *p = 0) : parent(p) { |