forked from qt-creator/qt-creator
Qt6: Workaround for ListModel iterators
Change-Id: I622b42b8aea4f06b62e8739f7e8abb234ed7d3b4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -67,10 +67,8 @@ public:
|
||||
|
||||
void clear() { rootItem()->removeChildren(); }
|
||||
|
||||
using const_iterator = typename QVector<ChildType *>::const_iterator;
|
||||
const_iterator begin() const { return const_iterator(rootItem()->begin()); }
|
||||
const_iterator end() const { return const_iterator(rootItem()->end()); }
|
||||
|
||||
auto begin() const { return rootItem()->begin(); }
|
||||
auto end() const { return rootItem()->end(); }
|
||||
};
|
||||
|
||||
template <class ItemData>
|
||||
|
||||
Reference in New Issue
Block a user