Allow DividerLabel to wrap any widget, not just FlatLabel.
This commit is contained in:
parent
f5fb567052
commit
aa5cc61b6b
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue