====== PostTreeModel ====== **//Inherited from//** [[class::xtreemodel|XTreeModel]], **//Inherited by//** NULL **//Friend class//** NULL **//Description//** **//Members//** * bool [[posttreemodel#m_bpreviousstate|m_bPreviousState]] **//Public interface//** * [[posttreemodel#posttreemodel1|PostTreeModel]](XDocument * doc, MainFrame *frame) * QVariant [[posttreemodel#data|data]](const QModelIndex &index, int role) const * bool [[posttreemodel#setdata|setData]](const QModelIndex &index, const QVariant &value,int role = EditRole) * int [[posttreemodel#columncount|columnCount]](const QModelIndex &parent) const ---- {{anchor:m_bpreviousstate}} **bool m_bPreviousState** ---- {{anchor:posttreemodel1}} **PostTreeModel(XDocument * doc, MainFrame *frame)** *function: *parameters: - [i]XDocument * doc: - [i] MainFrame *frame: *return value: {{anchor:data}} **QVariant data(const QModelIndex &index, int role) const** *function: *parameters: - [i]const QModelIndex &index: - [i] int role: *return value: {{anchor:setdata}} **bool setData(const QModelIndex &index, const QVariant &value,int role = EditRole)** *function: *parameters: - [i]const QModelIndex &index: - [i] const QVariant &value: - [i]int role = EditRole: *return value: {{anchor:columncount}} **int columnCount(const QModelIndex &parent) const** *function: *parameters: - [i]const QModelIndex &parent: *return value: