added 'add new label' support

This commit is contained in:
Luis Ángel San Martín
2014-11-11 15:46:30 +01:00
parent a74309aed9
commit d1fbb1d5ba
12 changed files with 189 additions and 10 deletions

View File

@ -50,6 +50,22 @@ QIcon LabelItem::getIcon() const
}
}
YACReader::LabelColors LabelItem::colorid()
{
if(itemData.count()>3)
{
return YACReader::LabelColors(itemData.at(3).toInt());
}
}
QString LabelItem::name()
{
if(itemData.count()>0)
{
return itemData.at(0).toString();
}
}
//------------------------------------------------------
ReadingListItem::ReadingListItem(const QList<QVariant> &data, ReadingListItem *p)