Allow DividerLabel to wrap any widget, not just FlatLabel.

This commit is contained in:
John Preston 2023-04-04 17:06:52 +04:00
parent f5fb567052
commit aa5cc61b6b
2 changed files with 3 additions and 3 deletions

View file

@ -978,7 +978,7 @@ void FlatLabel::paintEvent(QPaintEvent *e) {
DividerLabel::DividerLabel(
QWidget *parent,
object_ptr<FlatLabel> &&child,
object_ptr<RpWidget> &&child,
const style::margins &padding,
RectParts parts)
: PaddingWrap(parent, std::move(child), padding)

View file

@ -260,11 +260,11 @@ private:
};
class DividerLabel : public PaddingWrap<FlatLabel> {
class DividerLabel : public PaddingWrap<> {
public:
DividerLabel(
QWidget *parent,
object_ptr<FlatLabel> &&child,
object_ptr<RpWidget> &&child,
const style::margins &padding,
RectParts parts = RectPart::Top | RectPart::Bottom);