23#include "AstUtil/Attribute.hpp"
24#include <QTreeWidgetItem>
44 static QList<QTreeWidgetItem*> CreateTreeItems(
Object*
object,
int maxDepth = 20);
59 void refreshDisplay();
63 void buildChildren(
int maxDepth = 20);
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:95
属性树控件项,封装一个 Attribute(对象-属性绑定),显示属性名和当前值
定义 UiAttributeTreeItem.hpp:34
const std::string & propertyName() const
获取缓存的属性名
定义 UiAttributeTreeItem.hpp:53
Attribute & attribute()
获取内部的 Attribute 引用(可读写)
定义 UiAttributeTreeItem.hpp:47
const std::string & propertyDesc() const
获取缓存的属性描述
定义 UiAttributeTreeItem.hpp:56
const Attribute & attribute() const
获取内部的 Attribute 引用(只读)
定义 UiAttributeTreeItem.hpp:50