From 3375e58a4f45f9435b3c80c5b5c5f5e241e80567 Mon Sep 17 00:00:00 2001 From: fourtf Date: Fri, 25 Sep 2020 23:41:18 +0200 Subject: [PATCH] added spacing to the split header title --- src/widgets/BaseWidget.hpp | 3 ++- src/widgets/splits/SplitHeader.cpp | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/widgets/BaseWidget.hpp b/src/widgets/BaseWidget.hpp index 15f3884ce..1c165a811 100644 --- a/src/widgets/BaseWidget.hpp +++ b/src/widgets/BaseWidget.hpp @@ -15,7 +15,8 @@ class BaseWidget : public QWidget Q_OBJECT public: - explicit BaseWidget(QWidget *parent, Qt::WindowFlags f = Qt::WindowFlags()); + explicit BaseWidget(QWidget *parent = nullptr, + Qt::WindowFlags f = Qt::WindowFlags()); virtual float scale() const; pajlada::Signals::Signal scaleChanged; diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp index 70d824fa3..2bfa40a4f 100644 --- a/src/widgets/splits/SplitHeader.cpp +++ b/src/widgets/splits/SplitHeader.cpp @@ -174,6 +174,9 @@ SplitHeader::SplitHeader(Split *_split) void SplitHeader::initializeLayout() { auto layout = makeLayout({ + // space + makeWidget( + [](auto w) { w->setScaleIndependantSize(8, 4); }), // title this->titleLabel_ = makeWidget