Construct an instance of a TQListViewItemIterator, with either a TQListView* or a TQListViewItem* as argument, to operate on the tree of TQListViewItems, starting from the argument.
A TQListViewItemIterator iterates over all the items from its starting point. This means that it always makes the first child of the current item the new current item. If there is no child, the next sibling becomes the new current item; and if there is no next sibling, the next sibling of the parent becomes current.
Multiple TQListViewItemIterators can operate on the tree of TQListViewItems. A TQListView knows about all iterators operating on its TQListViewItems. So when a TQListViewItem gets removed all iterators that point to this item are updated and point to the following item if possible, otherwise to a valid item before the current one or to 0. Note however that deleting the parent item of an item that an iterator points to is not safe.
These flags can be passed to a TQListViewItemIterator constructor (OR-ed together if more than one is used), so that the iterator will only iterate over items that match the given flags.
Constructs an iterator for the TQListView that contains the \fIitem\fR. The current iterator item is set to point to the \fIitem\fR.
.SH "TQListViewItemIterator::TQListViewItemIterator ( TQListViewItem * item, int iteratorFlags )"
Constructs an iterator for the TQListView that contains the \fIitem\fR using the flags \fIiteratorFlags\fR. The current iterator item is set to point to \fIitem\fR or the next matching item if \fIitem\fR doesn't match the flags.
Constructs an iterator for the TQListView \fIlv\fR. The current iterator item is set to point on the first child (TQListViewItem) of \fIlv\fR.
.SH "TQListViewItemIterator::TQListViewItemIterator ( TQListView * lv, int iteratorFlags )"
Constructs an iterator for the TQListView \fIlv\fR with the flags \fIiteratorFlags\fR. The current iterator item is set to point on the first child (TQListViewItem) of \fIlv\fR that matches the flags.
Sets the current item to the item \fIj\fR positions after the current item. If that item is beyond the last item, the current item is set to 0. Returns the current item.
Sets the current item to the item \fIj\fR positions before the current item. If that item is before the first item, the current item is set to 0. Returns the current item.