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