32 QAbstractItemModel *
const Model_;
33 const QModelIndex Parent_;
65 ModelIterator (QAbstractItemModel *model,
int row,
int col = 0,
66 Direction dir = Direction::Rows,
const QModelIndex& parent = {});
73 ModelIterator& operator++ ();
80 ModelIterator operator++ (
int);
87 ModelIterator& operator-- ();
94 ModelIterator operator-- (
int);
101 ModelIterator& operator+= (
int count);
109 ModelIterator& operator-= (
int count);
123 int operator- (
const ModelIterator& other)
const;
147 friend UTIL_MODELS_API bool operator!= (
const ModelIterator& left,
const ModelIterator& right);
154 QModelIndex operator* ()
const;
172 int& GetIncrementable ();
173 int GetIncrementable ()
const;
180 struct iterator_traits<
LC::Util::ModelIterator>
Provides an iterator-based API to a Qt model.
Direction
The direction of traversal.
auto operator==(const T &left, const T &right)
random_access_iterator_tag iterator_category