added support for deleting labels/lists

This commit is contained in:
Luis Ángel San Martín
2014-11-13 09:32:09 +01:00
parent 2c547e30f8
commit 331b5988a1
7 changed files with 65 additions and 5 deletions

View File

@ -114,6 +114,7 @@ ReadingListItem *ReadingListItem::child(int row)
void ReadingListItem::appendChild(ReadingListItem *item)
{
childItems.append(item);
item->parent = this;
return; //TODO
item->parent = this;
@ -151,6 +152,11 @@ void ReadingListItem::appendChild(ReadingListItem *item)
}
void ReadingListItem::removeChild(ReadingListItem *item)
{
childItems.removeOne(item);
}
qulonglong ReadingListItem::getId() const
{
if(itemData.count()>1)