added spacing to the split header title
This commit is contained in:
@@ -15,7 +15,8 @@ class BaseWidget : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit BaseWidget(QWidget *parent, Qt::WindowFlags f = Qt::WindowFlags());
|
explicit BaseWidget(QWidget *parent = nullptr,
|
||||||
|
Qt::WindowFlags f = Qt::WindowFlags());
|
||||||
|
|
||||||
virtual float scale() const;
|
virtual float scale() const;
|
||||||
pajlada::Signals::Signal<float> scaleChanged;
|
pajlada::Signals::Signal<float> scaleChanged;
|
||||||
|
|||||||
@@ -174,6 +174,9 @@ SplitHeader::SplitHeader(Split *_split)
|
|||||||
void SplitHeader::initializeLayout()
|
void SplitHeader::initializeLayout()
|
||||||
{
|
{
|
||||||
auto layout = makeLayout<QHBoxLayout>({
|
auto layout = makeLayout<QHBoxLayout>({
|
||||||
|
// space
|
||||||
|
makeWidget<BaseWidget>(
|
||||||
|
[](auto w) { w->setScaleIndependantSize(8, 4); }),
|
||||||
// title
|
// title
|
||||||
this->titleLabel_ = makeWidget<Label>([](auto w) {
|
this->titleLabel_ = makeWidget<Label>([](auto w) {
|
||||||
w->setSizePolicy(QSizePolicy::MinimumExpanding,
|
w->setSizePolicy(QSizePolicy::MinimumExpanding,
|
||||||
@@ -181,6 +184,9 @@ void SplitHeader::initializeLayout()
|
|||||||
w->setCentered(true);
|
w->setCentered(true);
|
||||||
w->setHasOffset(false);
|
w->setHasOffset(false);
|
||||||
}),
|
}),
|
||||||
|
// space
|
||||||
|
makeWidget<BaseWidget>(
|
||||||
|
[](auto w) { w->setScaleIndependantSize(8, 4); }),
|
||||||
// mode
|
// mode
|
||||||
this->modeButton_ = makeWidget<EffectLabel>([&](auto w) {
|
this->modeButton_ = makeWidget<EffectLabel>([&](auto w) {
|
||||||
w->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
w->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
||||||
|
|||||||
Reference in New Issue
Block a user