mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 08:54:13 -04:00
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:
parent
c869fd863d
commit
ff8e30db55
3 changed files with 55 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue