forked from jeena/FeedTheMonkey
first steps to mark read
This commit is contained in:
parent
74d5236408
commit
ddb54f398c
8 changed files with 27 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue