┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kstandarditemmodel.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-17 21:59:51 +0200
committerPeter Penz <[email protected]>2012-05-17 22:00:39 +0200
commit727fd64e121f97b32d645e2fb26c4e93c413a849 (patch)
tree8a8263cfd7ffa618605ad2d480cc63dc87c6e7d4 /src/kitemviews/kstandarditemmodel.h
parentbd02faa982c263205b5cc21d6ceb4225a83c76b5 (diff)
Create unit-test for KStandardItemModel
Diffstat (limited to 'src/kitemviews/kstandarditemmodel.h')
-rw-r--r--src/kitemviews/kstandarditemmodel.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kitemviews/kstandarditemmodel.h b/src/kitemviews/kstandarditemmodel.h
index 047c1e9b6..34032bf07 100644
--- a/src/kitemviews/kstandarditemmodel.h
+++ b/src/kitemviews/kstandarditemmodel.h
@@ -47,14 +47,16 @@ public:
* Inserts the item \a item at the index \a index. If the index
* is equal to the number of items of the model, the item
* gets appended as last element. KStandardItemModel takes
- * the ownership of the item.
+ * the ownership of the item. If the index is invalid, the item
+ * gets deleted.
*/
void insertItem(int index, KStandardItem* item);
/**
* Changes the item on the index \a index to \a item.
* KStandardItemModel takes the ownership of the item. The
- * old item gets deleted.
+ * old item gets deleted. If the index is invalid, the item
+ * gets deleted.
*/
void changeItem(int index, KStandardItem* item);
@@ -102,6 +104,7 @@ private:
QHash<const KStandardItem*, int> m_indexesForItems;
friend class KStandardItem;
+ friend class KStandardItemModelTest; // For unit testing
};
#endif