118 glDeleteTextures(1, &it.value().texId);
126 glGenTextures(1, &cache_entry.texId);
QHash< Key, T >::const_iterator constFind(const Key &key, const T &value) const
Returns an iterator pointing to the item with the key and the value in the hash.
#define it(className, varName)
Q_CORE_EXPORT int qrand()
const T value(const Key &key) const
Returns the value associated with the key.
InterpolationMode interpolationMode() const
Returns the interpolation mode of this gradient.
QGLGradientColorTableHash cache
QGradientStops stops() const
Returns the stop points for this gradient.
QHash< Key, T >::iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
int remove(const Key &key, const T &value)
Removes all the items that have the key and the value value from the hash.
int size() const
Returns the number of items in the hash.
void generateGradientColorTable(const QGradient &gradient, uint *colorTable, int size, qreal opacity) const
QList< Key > keys() const
Returns a list containing all the keys in the hash, in an arbitrary order.
friend class const_iterator