====== PreTreeModel ====== **//Inherited from//** [[class::xtreemodel|XTreeModel]], **//Inherited by//** NULL **//Friend class//** NULL **//Description//** **//Public interface//** * [[pretreemodel#pretreemodel1|PreTreeModel]](XDocument * doc, MainFrame * pFrame) * QVariant [[pretreemodel#headerdata|headerData]](int section, Orientation orientation, int role = DisplayRole) const * QVariant [[pretreemodel#data|data]](const QModelIndex &index, int role) const * bool [[pretreemodel#setdata|setData]](const QModelIndex &index, const QVariant &value,int role = EditRole) * int [[pretreemodel#columncount|columnCount]](const QModelIndex &parent = QModelIndex()) const * ItemFlags [[pretreemodel#flags|flags]](const QModelIndex &index) const ---- {{anchor:pretreemodel1}} **PreTreeModel(XDocument * doc, MainFrame * pFrame)** *function: *parameters: - [i]XDocument * doc: - [i] MainFrame * pFrame: *return value: {{anchor:headerdata}} **QVariant headerData(int section, Orientation orientation, int role = DisplayRole) const** *function: *parameters: - [i]int section: - [i] Orientation orientation: - [i] int role = DisplayRole: *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 = QModelIndex()) const** *function: *parameters: - [i]const QModelIndex &parent = QModelIndex(: *return value: {{anchor:flags}} **ItemFlags flags(const QModelIndex &index) const** *function: *parameters: - [i]const QModelIndex &index: *return value: