![]() |
| ||
Classes - Annotated - Tree - Functions - Home - Structure |
The QSortedList class provides a list sorted by operator< and operator==. More...
#include <qsortedlist.h>
Inherits QPtrList<type>.
This class is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.
If you want to sort a QPtrList you have to reimplement the QGList::compareItems() method. If the elements of your list support operator<() and operator==(), you can use QSortedList instead. Its compareItems() calls operator<() and operator==() and returns an appropriate result.
Otherwise, this is as QPtrList.
See also QPtrList and Collection Classes.
Each item in list is copied to this new list.
All list iterators that access this list will be reset.
This list is first cleared; each item in list is then appended to this list. Only the pointers are copied (shallow copy) unless newItem() has been reimplemented().
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta2
|