* Added first pass at Generic Comment Tree.

- Specific to Posted at the moment.
 * Modified Posted to load Comments when Post "comment" button is pressed.
 



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5366 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2012-08-01 01:47:53 +00:00
parent c3ea5cbab6
commit 48683a19d5
13 changed files with 576 additions and 112 deletions

View file

@ -72,10 +72,23 @@ PostedItem::PostedItem(PostedHolder *parent, const RsPostedPost &post)
ts.setTime_t(post.mMeta.mPublishTs);
dateLabel->setText(ts.toString(QString("yyyy/MM/dd hh:mm:ss")));
mThreadId = post.mMeta.mThreadId;
mParent = parent;
connect( commentButton, SIGNAL( clicked() ), this, SLOT( loadComments() ) );
return;
}
void PostedItem::loadComments()
{
std::cerr << "PostedItem::loadComments() Requesting for " << mThreadId;
std::cerr << std::endl;
mParent->requestComments(mThreadId);
}
#if 0
PhotoItem::PhotoItem(PhotoHolder *parent, const RsPhotoAlbum &album)