mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed show/hide notes frame
This commit is contained in:
parent
4ae61ddbca
commit
2561b9bc7e
@ -111,9 +111,9 @@ void BoardPostDisplayWidget_compact::doExpand(bool e)
|
|||||||
{
|
{
|
||||||
std::cerr << "Expanding" << std::endl;
|
std::cerr << "Expanding" << std::endl;
|
||||||
if(e)
|
if(e)
|
||||||
ui->notes->show();
|
ui->frame_notes->show();
|
||||||
else
|
else
|
||||||
ui->notes->hide();
|
ui->frame_notes->hide();
|
||||||
|
|
||||||
emit expand(mPost.mMeta.mMsgId,e);
|
emit expand(mPost.mMeta.mMsgId,e);
|
||||||
}
|
}
|
||||||
@ -363,18 +363,18 @@ void BoardPostDisplayWidget_compact::setup()
|
|||||||
|
|
||||||
if(mDisplayFlags & SHOW_NOTES)
|
if(mDisplayFlags & SHOW_NOTES)
|
||||||
{
|
{
|
||||||
notes()->show();
|
ui->frame_notes->show();
|
||||||
ui->expandButton->setChecked(true);
|
ui->expandButton->setChecked(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
notes()->hide();
|
ui->frame_notes->hide();
|
||||||
ui->expandButton->setChecked(false);
|
ui->expandButton->setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(doc.toPlainText().trimmed().isEmpty())
|
if(doc.toPlainText().trimmed().isEmpty())
|
||||||
{
|
{
|
||||||
notes()->hide();
|
ui->frame_notes->hide();
|
||||||
ui->expandButton->hide();
|
ui->expandButton->hide();
|
||||||
}
|
}
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
@ -421,7 +421,7 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="frame_picture">
|
<widget class="QFrame" name="frame_notes">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user