mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 08:54:13 -04:00
* 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:
parent
c3ea5cbab6
commit
48683a19d5
13 changed files with 576 additions and 112 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue