3#include <QTreeWidgetItem>
19 [
this, &
data](
const std::string& key, QTreeWidgetItem* item)
21 auto child =
data->getElement(key);
22 this->
update(item, key, child,
data->getPath());
35 [
this, &
data](
size_t key, QTreeWidgetItem* item)
37 auto child =
data->getElement(key);
38 this->
update(item, std::to_string(key), child,
data->getPath());
47 const std::string& key,
68 auto empty = std::make_shared<aron::data::Dict>(parentPath.
withElement(key));
std::vector< size_t > getIndex(size_t size) const
armarx::TreeWidgetBuilder< std::string > DictBuilder
ListBuilder getListBuilder() const
armarx::TreeWidgetBuilder< size_t > ListBuilder
DictBuilder getDictBuilder() const
void setRowTexts(QTreeWidgetItem *item, const std::string &key, const std::string &value, const std::string &typeName="") const
void updateTree(QTreeWidgetItem *parent, const aron::data::DictPtr &data)
void update(QTreeWidgetItem *item, const std::string &key, const aron::data::VariantPtr &data, const aron::Path &parentPath)
Path withElement(const std::string &, bool escape=false) const
static PointerType DynamicCast(const VariantPtr &n)
std::shared_ptr< Dict > DictPtr
std::shared_ptr< List > ListPtr
std::shared_ptr< Variant > VariantPtr