Work on feedsmodel.
This commit is contained in:
parent
e7a313fd77
commit
7930580a6f
@ -169,13 +169,10 @@ QModelIndex FeedsModel::indexForItem(FeedsModelRootItem *item) const {
|
|||||||
return QModelIndex();
|
return QModelIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Rewrite for better performance.
|
QList<QModelIndex> parents;
|
||||||
|
|
||||||
QModelIndexList parents;
|
// Start with root item.
|
||||||
|
parents << indexForItem(m_rootItem);
|
||||||
// Start with invalid index (so that we start from the root
|
|
||||||
// item).
|
|
||||||
parents << QModelIndex();
|
|
||||||
|
|
||||||
while (!parents.isEmpty()) {
|
while (!parents.isEmpty()) {
|
||||||
QModelIndex active_index = parents.takeFirst();
|
QModelIndex active_index = parents.takeFirst();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user