fixed show/hide notes frame

This commit is contained in:
csoler 2020-09-26 11:21:11 +02:00
parent 4ae61ddbca
commit 2561b9bc7e
2 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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>