Make GenericBox vertical-layout available outside.

This commit is contained in:
John Preston 2020-03-10 16:28:51 +04:00
parent 1b673b7e40
commit c96119dcd1
2 changed files with 6 additions and 0 deletions

View file

@ -25,4 +25,8 @@ void GenericBox::addSkip(int height) {
addRow(object_ptr<Ui::FixedHeightWidget>(this, height));
}
not_null<Ui::VerticalLayout*> GenericBox::verticalLayout() {
return _content.data();
}
} // namespace Ui

View file

@ -77,6 +77,8 @@ public:
}
}
[[nodiscard]] not_null<Ui::VerticalLayout*> verticalLayout();
using BoxContent::setNoContentMargin;
protected: