projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace deprecated QModelIndex::child with QAbstractItemModel::index
[quassel.git]
/
src
/
client
/
treemodel.cpp
diff --git
a/src/client/treemodel.cpp
b/src/client/treemodel.cpp
index
d1cc465
..
2819353
100644
(file)
--- a/
src/client/treemodel.cpp
+++ b/
src/client/treemodel.cpp
@@
-571,7
+571,7
@@
void TreeModel::debug_rowsAboutToBeRemoved(const QModelIndex& parent, int start,
QModelIndex child;
for (int i = end; i >= start; i--) {
QModelIndex child;
for (int i = end; i >= start; i--) {
- child = parent.
child(i, 0
);
+ child = parent.
model()->index(i, 0, parent
);
Q_ASSERT(parentItem->child(i));
qDebug() << ">>>" << i << child << child.data().toString();
}
Q_ASSERT(parentItem->child(i));
qDebug() << ">>>" << i << child << child.data().toString();
}
@@
-587,7
+587,7
@@
void TreeModel::debug_rowsInserted(const QModelIndex& parent, int start, int end
QModelIndex child;
for (int i = start; i <= end; i++) {
QModelIndex child;
for (int i = start; i <= end; i++) {
- child = parent.
child(i, 0
);
+ child = parent.
model()->index(i, 0, parent
);
Q_ASSERT(parentItem->child(i));
qDebug() << "<<<" << i << child << child.data().toString();
}
Q_ASSERT(parentItem->child(i));
qDebug() << "<<<" << i << child << child.data().toString();
}