use value instead of [] to avoid empty or uninteresting elements in the collection
svn path=/branches/KDE/4.3/kdelibs/; revision=1006950
This commit is contained in:
parent
9a7c26958f
commit
90b120b01c
@ -664,7 +664,7 @@ bool Theme::useNativeWidgetStyle() const
|
|||||||
bool Theme::findInCache(const QString &key, QPixmap &pix)
|
bool Theme::findInCache(const QString &key, QPixmap &pix)
|
||||||
{
|
{
|
||||||
if (d->useCache()) {
|
if (d->useCache()) {
|
||||||
const QString id = d->keysToCache[key];
|
const QString id = d->keysToCache.value(key);
|
||||||
if (d->pixmapsToCache.contains(id)) {
|
if (d->pixmapsToCache.contains(id)) {
|
||||||
pix = d->pixmapsToCache.value(id);
|
pix = d->pixmapsToCache.value(id);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user