mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
implemented 'add reading list'
This commit is contained in:
@ -122,6 +122,15 @@ void ReadingListItem::appendChild(ReadingListItem *item)
|
||||
childItems.append(item);
|
||||
else
|
||||
{
|
||||
if(item->parent->getId()==0) //sort by name, top level child
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*ReadingListItem * last = childItems.back();
|
||||
QString nameLast = last->data(1).toString(); //TODO usar info name si est<73> disponible, sino el nombre del fichero.....
|
||||
QString nameCurrent = item->data(1).toString();
|
||||
@ -163,6 +172,11 @@ void ReadingListItem::setName(const QString &name)
|
||||
itemData[0] = name;
|
||||
}
|
||||
|
||||
QList<ReadingListItem *> ReadingListItem::children()
|
||||
{
|
||||
return childItems;
|
||||
}
|
||||
|
||||
int ReadingListItem::row() const
|
||||
{
|
||||
if (parent)
|
||||
|
Reference in New Issue
Block a user