first steps to mark read

This commit is contained in:
Jeena 2015-02-09 00:37:31 +01:00
parent 74d5236408
commit ddb54f398c
8 changed files with 27 additions and 4 deletions

View file

@ -76,6 +76,7 @@ void TinyTinyRSS::reply()
{
QJsonObject postJson = posts.at(i).toObject();
Post *post = new Post(postJson, this);
connect(post, SIGNAL(readChanged(bool)), this, SLOT(onPostReadChanged(bool)));
mPosts.append(post);
}
@ -90,6 +91,11 @@ void TinyTinyRSS::reply()
}
}
void TinyTinyRSS::onPostReadChanged(bool r)
{
qDebug() << r;
}
QQmlListProperty<Post> TinyTinyRSS::posts()
{
return QQmlListProperty<Post>(this, mPosts);