31 #include <QAbstractItemModel>
50 ++GetIncrementable ();
57 ++GetIncrementable ();
63 --GetIncrementable ();
70 --GetIncrementable ();
76 GetIncrementable () += diff;
82 GetIncrementable () -= diff;
88 return Row_ - other.Row_;
93 return Row_ == other.Row_ &&
95 Model_ == other.Model_ &&
96 Parent_ == other.Parent_;
101 return !(*
this == other);
106 return Model_->index (Row_, Col_, Parent_);
119 int& ModelIterator::GetIncrementable ()
129 qWarning () << Q_FUNC_INFO
130 <<
"unknown direction";
QModelIndex operator*() const
ModelIterator & operator++()
int operator-(const ModelIterator &other) const
ModelIterator & operator--()
ModelIterator & operator-=(int)
ModelIterator & operator+=(int)
ModelIterator(QAbstractItemModel *model, int row, int col=0, Direction dir=Direction::Rows, const QModelIndex &parent=QModelIndex())
bool operator!=(const ModelIterator &other) const
bool operator==(const ModelIterator &other) const