mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fix descriptions display in Posted
This commit is contained in:
parent
b6f102cabb
commit
723016e930
@ -104,8 +104,6 @@ void PostedItem::setup()
|
|||||||
|
|
||||||
ui->clearButton->hide();
|
ui->clearButton->hide();
|
||||||
ui->readAndClearButton->hide();
|
ui->readAndClearButton->hide();
|
||||||
|
|
||||||
ui->frame_notes->hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PostedItem::setGroup(const RsPostedGroup &group, bool doFill)
|
bool PostedItem::setGroup(const RsPostedGroup &group, bool doFill)
|
||||||
@ -278,11 +276,12 @@ void PostedItem::fill()
|
|||||||
|
|
||||||
// FIX THIS UP LATER.
|
// FIX THIS UP LATER.
|
||||||
ui->notes->setText(QString::fromUtf8(mPost.mNotes.c_str()));
|
ui->notes->setText(QString::fromUtf8(mPost.mNotes.c_str()));
|
||||||
|
if(ui->notes->text().isEmpty())
|
||||||
|
ui->frame_notes->hide();
|
||||||
// differences between Feed or Top of Comment.
|
// differences between Feed or Top of Comment.
|
||||||
if (mFeedHolder)
|
if (mFeedHolder)
|
||||||
{
|
{
|
||||||
// feed.
|
// feed.
|
||||||
ui->frame_notes->hide();
|
|
||||||
//frame_comment->show();
|
//frame_comment->show();
|
||||||
ui->commentButton->show();
|
ui->commentButton->show();
|
||||||
|
|
||||||
@ -303,14 +302,6 @@ void PostedItem::fill()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// no feed.
|
// no feed.
|
||||||
if(ui->notes->text().isEmpty())
|
|
||||||
{
|
|
||||||
ui->frame_notes->hide();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ui->frame_notes->show();
|
|
||||||
}
|
|
||||||
//frame_comment->hide();
|
//frame_comment->hide();
|
||||||
ui->commentButton->hide();
|
ui->commentButton->hide();
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="newCommHLayout">
|
<layout class="QHBoxLayout" name="newCommHLayout">
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
@ -327,30 +327,29 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="frame_notes">
|
<widget class="QFrame" name="frame_notes">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::Box</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QLabel" name="notes">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<property name="geometry">
|
<property name="margin">
|
||||||
<rect>
|
<number>1</number>
|
||||||
<x>2</x>
|
|
||||||
<y>2</y>
|
|
||||||
<width>16</width>
|
|
||||||
<height>17</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="spacing">
|
||||||
<string notr="true"/>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<item row="0" column="0">
|
||||||
<string/>
|
<widget class="QLabel" name="notes">
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="wordWrap">
|
<string/>
|
||||||
<bool>true</bool>
|
</property>
|
||||||
</property>
|
<property name="wordWrap">
|
||||||
</widget>
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
Loading…
Reference in New Issue
Block a user