forked from qt-creator/qt-creator
Utils: return ChildType iterator in ListModel
Change-Id: I2eeb710ddc8954fe64c6421b8684fb80ed59c13d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -67,9 +67,9 @@ public:
|
|||||||
|
|
||||||
void clear() { rootItem()->removeChildren(); }
|
void clear() { rootItem()->removeChildren(); }
|
||||||
|
|
||||||
using const_iterator = typename QVector<TreeItem *>::const_iterator;
|
using const_iterator = typename QVector<ChildType *>::const_iterator;
|
||||||
const_iterator begin() const { return rootItem()->begin(); }
|
const_iterator begin() const { return const_iterator(rootItem()->begin()); }
|
||||||
const_iterator end() const { return rootItem()->end(); }
|
const_iterator end() const { return const_iterator(rootItem()->end()); }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user