Enabled to display the Notes text on the Post Item

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7011 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-01-12 14:53:57 +00:00
parent c869fd863d
commit ff8e30db55
3 changed files with 55 additions and 8 deletions

View file

@ -103,12 +103,12 @@ void PostedItem::setContent(const RsPostedPost &post)
scoreLabel->setText(score);
// FIX THIS UP LATER.
//notes->setPlainText(QString::fromUtf8(post.mNotes.c_str()));
notes->setText(QString::fromUtf8(post.mNotes.c_str()));
// differences between Feed or Top of Comment.
if (mParent)
{
// feed.
//frame_notes->hide();
frame_notes->hide();
//frame_comment->show();
commentButton->show();
@ -127,7 +127,14 @@ void PostedItem::setContent(const RsPostedPost &post)
else
{
// no feed.
//frame_notes->show();
if(notes->text().isEmpty())
{
frame_notes->hide();
}
else
{
frame_notes->show();
}
//frame_comment->hide();
commentButton->hide();
}