Remove the extra top margin from timeline widgets

This commit is contained in:
Konstantinos Sideris 2018-05-04 15:47:04 +03:00
parent 5caaa9d3c4
commit 8dd21b1dae
2 changed files with 3 additions and 3 deletions

View file

@ -193,7 +193,7 @@ TimelineItem::setupLocalWidgetLayout(Widget *widget, const QString &userid, bool
generateTimestamp(timestamp);
widgetLayout_ = new QHBoxLayout;
widgetLayout_->setContentsMargins(0, 5, 0, 0);
widgetLayout_->setMargin(0);
widgetLayout_->addWidget(widget);
widgetLayout_->addStretch(1);
@ -239,7 +239,7 @@ TimelineItem::setupWidgetLayout(Widget *widget, const Event &event, bool withSen
generateTimestamp(timestamp);
widgetLayout_ = new QHBoxLayout();
widgetLayout_->setContentsMargins(0, 5, 0, 0);
widgetLayout_->setMargin(0);
widgetLayout_->addWidget(widget);
widgetLayout_->addStretch(1);

View file

@ -597,7 +597,7 @@ TimelineItem::addAvatar()
// Restore widget's layout.
if (widget) {
widgetLayout_ = new QHBoxLayout();
widgetLayout_->setContentsMargins(0, 5, 0, 0);
widgetLayout_->setMargin(0);
widgetLayout_->addWidget(widget);
widgetLayout_->addStretch(1);