Lines Matching refs:ModelItem

43 ModelItem::ModelItem(ModelItem *parent)  in ModelItem()  function in ModelItem
49 ModelItem::~ModelItem() in ~ModelItem()
54 void ModelItem::setChangeId(int changeId) in setChangeId()
59 void ModelItem::setChangeType(KoGenChange::Type type) in setChangeType()
64 void ModelItem::setChangeTitle(const QString &title) in setChangeTitle()
69 void ModelItem::setChangeAuthor(const QString &author) in setChangeAuthor()
74 void ModelItem::appendChild(ModelItem *child) in appendChild()
79 ModelItem *ModelItem::child(int row) in child()
84 QList< ModelItem * > ModelItem::children() in children()
89 int ModelItem::childCount() const in childCount()
94 ModelItem *ModelItem::parent() in parent()
99 int ModelItem::row() const in row()
102 return m_parentItem->m_childItems.indexOf(const_cast<ModelItem *>(this)); in row()
107 void ModelItem::setChangeRange(int start, int end) in setChangeRange()
112 ItemData ModelItem::itemData() in itemData()
117 void ModelItem::removeChildren() in removeChildren()
129 m_rootItem = new ModelItem(0); in TrackedChangeModel()
144 ModelItem *parentItem; in index()
149 parentItem = static_cast<ModelItem *>(parent.internalPointer()); in index()
152 ModelItem *childItem = parentItem->child(row); in index()
162 ModelItem *item = m_changeItems.value(changeId); in indexForChangeId()
175 ModelItem *childItem = static_cast<ModelItem *>(index.internalPointer()); in parent()
176 ModelItem *parentItem = childItem->parent(); in parent()
187 ModelItem *parentItem; in rowCount()
195 parentItem = static_cast<ModelItem *>(parent.internalPointer()); in rowCount()
217 ModelItem *item = static_cast<ModelItem *>(index.internalPointer()); in changeItemData()
232 ModelItem *item = static_cast<ModelItem *>(index.internalPointer()); in data()
289 void TrackedChangeModel::setupModelData(QTextDocument *document, ModelItem *parent) in setupModelData()
294 QStack<ModelItem *> itemStack; in setupModelData()
317 ModelItem *item = m_changeItems.value(changeId); in setupModelData()
319 item = new ModelItem(itemStack.top()); in setupModelData()
328 ModelItem *parentItem = item->parent(); in setupModelData()