#include <q3canvas.h>
Inheritance diagram for Q3CanvasItemList:


Q3CanvasItemList is a Q3ValueList of pointers to {Q3CanvasItem}s. This class is used by some methods in Q3Canvas that need to return a list of canvas items.
The Q3ValueList documentation describes how to use this list.
Definition at line 52 of file q3canvas.h.
Public Member Functions | |
| void | sort () |
| void | drawUnique (QPainter &painter) |
| Q3CanvasItemList | operator+ (const Q3CanvasItemList &l) const |
| void Q3CanvasItemList::sort | ( | ) |
Definition at line 333 of file q3canvas.cpp.
References qHeapSort().
Referenced by Q3Canvas::drawCanvasArea(), and Q3CanvasChunk::sort().
00334 { 00335 qHeapSort(*((Q3ValueList<Q3CanvasItemPtr>*)this)); 00336 }
Here is the call graph for this function:

| void Q3CanvasItemList::drawUnique | ( | QPainter & | painter | ) |
Definition at line 341 of file q3canvas.cpp.
References QLinkedList< Q3CanvasItem * >::end(), Q3ValueList< Q3CanvasItem * >::fromLast(), and g.
Referenced by Q3Canvas::drawCanvasArea().
00342 { 00343 Q3CanvasItem* prev=0; 00344 for (Iterator it=fromLast(); it!=end(); --it) { 00345 Q3CanvasItem *g=*it; 00346 if (g!=prev) { 00347 g->draw(painter); 00348 prev=g; 00349 } 00350 } 00351 }
Here is the call graph for this function:

| Q3CanvasItemList Q3CanvasItemList::operator+ | ( | const Q3CanvasItemList & | l | ) | const |
Returns the concatenation of this list and list l.
Definition at line 356 of file q3canvas.cpp.
References Q3ValueList< T >::append(), and l.
00357 { 00358 Q3CanvasItemList l2(*this); 00359 for(const_iterator it = l.begin(); it != l.end(); ++it) 00360 l2.append(*it); 00361 return l2; 00362 }
Here is the call graph for this function:

1.5.1