centered splitheader title again

This commit is contained in:
fourtf 2018-01-14 22:24:21 +01:00
parent e0372a2453
commit 177cd734ab

View file

@ -39,18 +39,16 @@ SplitHeader::SplitHeader(Split *_split)
});
});
layout->addStretch(1);
// channel name label
auto title = layout.emplace<SignalLabel>().assign(&this->titleLabel);
title->setMouseTracking(true);
QSizePolicy policy;
policy.setHorizontalStretch(1);
policy.setHorizontalPolicy(QSizePolicy::Policy::MinimumExpanding);
title->setSizePolicy(policy);
// title->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
// layout->setStretch(1, 1000);
QObject::connect(this->titleLabel, &SignalLabel::mouseDoubleClick, this,
&SplitHeader::mouseDoubleClickEvent);
layout->addStretch(1);
// moderation mode
auto moderation = layout.emplace<RippleEffectLabel>(this).assign(&this->moderationLabel);
moderation->setMouseTracking(true);