Several small additions to our QPtrList: int findRef(const T *item) { return impl.findRef(item); } typedef QPtrListIterator<T> Iterator; typedef QPtrListIterator<T> ConstIterator; ConstIterator begin() const { return ConstIterator(*this); } ConstIterator end() const { ConstIterator itr(*this); } And to QPtrListIterator: T *operator*() const { return (T *)impl.current(); }
Created attachment 2788 [details] straightforward additions.
More standard C++ semantics would be for operator* to return T *& rather than T* but I guess this matches KDE.
Comment on attachment 2788 [details] straightforward additions. r=me