Remove the extra top margin from timeline widgets
This commit is contained in:
parent
5caaa9d3c4
commit
8dd21b1dae
@ -193,7 +193,7 @@ TimelineItem::setupLocalWidgetLayout(Widget *widget, const QString &userid, bool
|
|||||||
generateTimestamp(timestamp);
|
generateTimestamp(timestamp);
|
||||||
|
|
||||||
widgetLayout_ = new QHBoxLayout;
|
widgetLayout_ = new QHBoxLayout;
|
||||||
widgetLayout_->setContentsMargins(0, 5, 0, 0);
|
widgetLayout_->setMargin(0);
|
||||||
widgetLayout_->addWidget(widget);
|
widgetLayout_->addWidget(widget);
|
||||||
widgetLayout_->addStretch(1);
|
widgetLayout_->addStretch(1);
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ TimelineItem::setupWidgetLayout(Widget *widget, const Event &event, bool withSen
|
|||||||
generateTimestamp(timestamp);
|
generateTimestamp(timestamp);
|
||||||
|
|
||||||
widgetLayout_ = new QHBoxLayout();
|
widgetLayout_ = new QHBoxLayout();
|
||||||
widgetLayout_->setContentsMargins(0, 5, 0, 0);
|
widgetLayout_->setMargin(0);
|
||||||
widgetLayout_->addWidget(widget);
|
widgetLayout_->addWidget(widget);
|
||||||
widgetLayout_->addStretch(1);
|
widgetLayout_->addStretch(1);
|
||||||
|
|
||||||
|
@ -597,7 +597,7 @@ TimelineItem::addAvatar()
|
|||||||
// Restore widget's layout.
|
// Restore widget's layout.
|
||||||
if (widget) {
|
if (widget) {
|
||||||
widgetLayout_ = new QHBoxLayout();
|
widgetLayout_ = new QHBoxLayout();
|
||||||
widgetLayout_->setContentsMargins(0, 5, 0, 0);
|
widgetLayout_->setMargin(0);
|
||||||
widgetLayout_->addWidget(widget);
|
widgetLayout_->addWidget(widget);
|
||||||
widgetLayout_->addStretch(1);
|
widgetLayout_->addStretch(1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user