From aa5cc61b6b65ec1fb8f1c1be8b2c9c559aadd958 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 4 Apr 2023 17:06:52 +0400 Subject: [PATCH] Allow DividerLabel to wrap any widget, not just FlatLabel. --- ui/widgets/labels.cpp | 2 +- ui/widgets/labels.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/widgets/labels.cpp b/ui/widgets/labels.cpp index 291539a..a6a8fac 100644 --- a/ui/widgets/labels.cpp +++ b/ui/widgets/labels.cpp @@ -978,7 +978,7 @@ void FlatLabel::paintEvent(QPaintEvent *e) { DividerLabel::DividerLabel( QWidget *parent, - object_ptr &&child, + object_ptr &&child, const style::margins &padding, RectParts parts) : PaddingWrap(parent, std::move(child), padding) diff --git a/ui/widgets/labels.h b/ui/widgets/labels.h index 2da193e..11735e8 100644 --- a/ui/widgets/labels.h +++ b/ui/widgets/labels.h @@ -260,11 +260,11 @@ private: }; -class DividerLabel : public PaddingWrap { +class DividerLabel : public PaddingWrap<> { public: DividerLabel( QWidget *parent, - object_ptr &&child, + object_ptr &&child, const style::margins &padding, RectParts parts = RectPart::Top | RectPart::Bottom);