32 #include <QModelIndex>
55 QAbstractItemModel *
const Model_;
56 const QModelIndex Parent_;
88 ModelIterator (QAbstractItemModel *model,
int row,
int col = 0,
89 Direction dir = Direction::Rows,
const QModelIndex&
parent = {});
96 ModelIterator& operator++ ();
103 ModelIterator operator++ (
int);
110 ModelIterator& operator-- ();
117 ModelIterator operator-- (
int);
124 ModelIterator& operator+= (
int count);
132 ModelIterator& operator-= (
int count);
146 int operator- (
const ModelIterator& other)
const;
177 QModelIndex operator* ()
const;
195 int& GetIncrementable ();
196 int GetIncrementable ()
const;
204 struct iterator_traits<LeechCraft::Util::ModelIterator>
bool operator!=(const ModelIterator &left, const ModelIterator &right)
bool operator==(const ModelIterator &left, const ModelIterator &right)
Direction
The direction of traversal.
random_access_iterator_tag iterator_category
Provides an iterator-based API to a Qt model.