colourlist.h
58 ColourList& operator=(const TQValueList<TQRgb>& list) { mList = list; qHeapSort(mList); return *this; }
68 ColourList& operator+=(const ColourList& list) { mList += list.mList; qHeapSort(mList); return *this; }
94 const_iterator find(const_iterator it, const TQColor& c) const { return mList.find(it, c.rgb()); }
size_type contains(const TQColor &c) const
Returns true if the list contains the colour c.
Definition: colourlist.h:86
ColourList & operator=(const TQValueList< TQRgb > &list)
Sets the list to comprise the colours in list.
Definition: colourlist.h:58
TQColor operator[](size_type i) const
Returns the colour at position i in the list.
Definition: colourlist.h:104
const_iterator begin() const
Returns an iterator pointing to the first colour in the list.
Definition: colourlist.h:78
const_iterator end() const
Returns an iterator pointing past the last colour in the list.
Definition: colourlist.h:80
bool operator==(const ColourList &l) const
Returns true if the colours in the two lists are the same.
Definition: colourlist.h:70
ColourList & operator+=(const TQColor &c)
Adds the specified colour c to the list.
Definition: colourlist.h:66
ColourList & operator+=(const ColourList &list)
Adds the colours in list to this list.
Definition: colourlist.h:68
int findIndex(const TQColor &c) const
Returns the index to the first occurrence of colour c in the list.
Definition: colourlist.h:98
const_iterator find(const TQColor &c) const
Returns an iterator pointing to the first occurrence of colour c in the list.
Definition: colourlist.h:90
bool operator!=(const ColourList &l) const
Returns true if the colours in the two lists differ.
Definition: colourlist.h:72
ColourList(const TQValueList< TQRgb > &list)
Constructs a list whose values are preset to the colours in list.
Definition: colourlist.h:50
const_iterator fromLast() const
Returns an iterator pointing to the last colour in the list, or end() if the list is empty.
Definition: colourlist.h:82
const_iterator at(size_type i) const
Returns an iterator pointing to the colour at position i in the list.
Definition: colourlist.h:84
const_iterator find(const_iterator it, const TQColor &c) const
Returns an iterator pointing to the first occurrence of colour c in the list, starting.
Definition: colourlist.h:94