Improve TreeItem API and allow to move nodes
This commit is contained in:
parent
92c04fa727
commit
bca0d36fe6
28 changed files with 527 additions and 289 deletions
|
|
@ -135,7 +135,7 @@ void SectionedInspector::_section_selected() {
|
|||
}
|
||||
|
||||
selected_category = sections->get_selected()->get_metadata(0);
|
||||
filter->set_section(selected_category, sections->get_selected()->get_children() == nullptr);
|
||||
filter->set_section(selected_category, sections->get_selected()->get_first_child() == nullptr);
|
||||
inspector->set_property_prefix(selected_category + "/");
|
||||
}
|
||||
|
||||
|
|
@ -187,8 +187,8 @@ void SectionedInspector::edit(Object *p_object) {
|
|||
|
||||
TreeItem *first_item = sections->get_root();
|
||||
if (first_item) {
|
||||
while (first_item->get_children()) {
|
||||
first_item = first_item->get_children();
|
||||
while (first_item->get_first_child()) {
|
||||
first_item = first_item->get_first_child();
|
||||
}
|
||||
|
||||
first_item->select(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue