28 #include <QStringList>
31 using namespace Data_Structure;
40 qDeleteAll(m_childItems);
45 item->m_parentItem =
this;
46 m_childItems.append(item);
51 return m_childItems.value(
row);
56 return m_childItems.count();
78 return m_parentItem->m_childItems.indexOf(
const_cast<TreeItem*
>(
this));
107 if (position < 0 || position > m_childItems.size())
112 child->m_parentItem =
this;
113 m_childItems.insert(position,
child);
120 if (position < 0 || position > m_childItems.size())
125 delete m_childItems.takeAt(position);
132 if (position < 0 || position >
m_itemData.size())
149 if (position < 0 || position >
m_itemData.size())