Skip to content
Snippets Groups Projects
Commit 8dd21b1d authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Remove the extra top margin from timeline widgets

parent 5caaa9d3
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment