mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05: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;
|
||||
if(e)
|
||||
ui->notes->show();
|
||||
ui->frame_notes->show();
|
||||
else
|
||||
ui->notes->hide();
|
||||
ui->frame_notes->hide();
|
||||
|
||||
emit expand(mPost.mMeta.mMsgId,e);
|
||||
}
|
||||
@ -363,18 +363,18 @@ void BoardPostDisplayWidget_compact::setup()
|
||||
|
||||
if(mDisplayFlags & SHOW_NOTES)
|
||||
{
|
||||
notes()->show();
|
||||
ui->frame_notes->show();
|
||||
ui->expandButton->setChecked(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
notes()->hide();
|
||||
ui->frame_notes->hide();
|
||||
ui->expandButton->setChecked(false);
|
||||
}
|
||||
|
||||
if(doc.toPlainText().trimmed().isEmpty())
|
||||
{
|
||||
notes()->hide();
|
||||
ui->frame_notes->hide();
|
||||
ui->expandButton->hide();
|
||||
}
|
||||
updateGeometry();
|
||||
|
@ -421,7 +421,7 @@
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFrame" name="frame_picture">
|
||||
<widget class="QFrame" name="frame_notes">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user