Remove the extra top margin from timeline widgets

pull/1/head
Konstantinos Sideris 7 years ago
parent 5caaa9d3c4
commit 8dd21b1dae
  1. 4
      include/timeline/TimelineItem.h
  2. 2
      src/timeline/TimelineItem.cc

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

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

Loading…
Cancel
Save