Commit 0a4e7aa3 authored by Andreas Traczyk's avatar Andreas Traczyk

smartlist: fix spacing when conv/invite buttons are hidden

Change-Id: Ib1a2a44a64977584504574fb9489e9306f178006
parent b8b13ba8
......@@ -692,7 +692,7 @@ void CallWidget::updateConversationsFilterWidget()
LRCInstance::getCurrentConversationModel()->setFilter(currentTypeFilter_);
}
ui->conversationsFilterWidget->setVisible(invites);
ui->verticalSpacer_3->changeSize(0, 10 * (1 - static_cast<bool>(invites)));
ui->missingButtonsDummyWidget->setVisible(!invites);
}
void CallWidget::setConversationFilter(const QString & filter)
......
......@@ -35,25 +35,6 @@
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout_13">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
</layout>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin">
......@@ -270,20 +251,20 @@
<number>1</number>
</property>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
<widget class="QWidget" name="missingButtonsDummyWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeHint" stdset="0">
<property name="minimumSize">
<size>
<width>20</width>
<width>0</width>
<height>10</height>
</size>
</property>
</spacer>
</widget>
</item>
<item>
<widget class="ConversationsFilterWidget" name="conversationsFilterWidget" native="true">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment