added sublists support to ReadingListsModel

This commit is contained in:
Luis Ángel San Martín
2014-10-31 12:23:43 +01:00
parent 73060fe064
commit 9250f02474
6 changed files with 52 additions and 25 deletions

View File

@ -107,3 +107,11 @@ void ReadingListItem::appendChild(ReadingListItem *item)
}
}
int ReadingListItem::row() const
{
if (parent)
return parent->childItems.indexOf(const_cast<ReadingListItem*>(this));
return 0;
}