xml: panel orientation

This commit is contained in:
MihailRis 2024-03-20 02:18:55 +03:00
parent 22d2dc1cbe
commit fcb4b1c38f

View File

@ -136,6 +136,12 @@ static void _readPanel(UiXmlReader& reader, xml::xmlelement element, Panel& pane
if (element->has("max-length")) {
panel.setMaxLength(element->attr("max-length").asInt());
}
if (element->has("orientation")) {
auto oname = element->attr("orientation").getText();
if (oname == "horizontal") {
panel.setOrientation(Orientation::horizontal);
}
}
if (subnodes) {
for (auto& sub : element->getElements()) {
if (sub->isText())