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

View File

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