attempt to fix size problem in boards display widget

This commit is contained in:
csoler 2020-08-11 13:04:29 +02:00
parent bdb36f7528
commit 6f1e1f8523
2 changed files with 347 additions and 344 deletions

View File

@ -25,7 +25,6 @@
#include "rshare.h"
#include "BoardPostDisplayWidget.h"
#include "gui/feeds/FeedHolder.h"
#include "gui/gxs/GxsIdDetails.h"
#include "util/misc.h"
#include "gui/common/FilesDefs.h"
@ -125,12 +124,12 @@ void BoardPostDisplayWidget::setup()
if(dmode == DISPLAY_MODE_COMPACT)
{
ui->pictureLabel_compact->show();
ui->expandButton->show();
ui->pictureLabel->hide();
ui->notes->hide();
ui->siteLabel->hide();
ui->expandButton->show();
if(mExpanded)
{
ui->frame_picture->show();

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>816</width>
<height>203</height>
<width>758</width>
<height>195</height>
</rect>
</property>
<property name="sizePolicy">
@ -22,12 +22,11 @@
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="sizeConstraint">
@ -123,6 +122,9 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
@ -305,7 +307,7 @@
<item>
<widget class="StyledLabel" name="titleLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -365,7 +367,7 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<layout class="QHBoxLayout" name="pictureLabelLayout">
<item>
<widget class="QLabel" name="pictureLabel">
<property name="text">
@ -447,6 +449,8 @@
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>