mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
centered splitheader title again
This commit is contained in:
parent
e0372a2453
commit
177cd734ab
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue