xml: panel orientation
This commit is contained in:
parent
22d2dc1cbe
commit
fcb4b1c38f
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user