From 8dd21b1daea1fea833223e91c6e39ddb802bcc50 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Fri, 4 May 2018 15:47:04 +0300 Subject: [PATCH] Remove the extra top margin from timeline widgets --- include/timeline/TimelineItem.h | 4 ++-- src/timeline/TimelineItem.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h index 24d7726b..82ff5ca7 100644 --- a/include/timeline/TimelineItem.h +++ b/include/timeline/TimelineItem.h @@ -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); diff --git a/src/timeline/TimelineItem.cc b/src/timeline/TimelineItem.cc index c6b6ab95..5084b978 100644 --- a/src/timeline/TimelineItem.cc +++ b/src/timeline/TimelineItem.cc @@ -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);