Work on feedsmodel.

This commit is contained in:
Martin Rotter 2013-12-31 14:33:42 +01:00
parent e7a313fd77
commit 7930580a6f

View File

@ -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();