backport findInCache fix
svn path=/branches/KDE/4.3/kdelibs/; revision=1004777
This commit is contained in:
parent
597682cbdb
commit
48484719d3
@ -664,10 +664,6 @@ 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()) {
|
||||||
if (!d->keysToCache.contains(key)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QString id = d->keysToCache[key];
|
const QString id = d->keysToCache[key];
|
||||||
if (d->pixmapsToCache.contains(id)) {
|
if (d->pixmapsToCache.contains(id)) {
|
||||||
pix = d->pixmapsToCache.value(id);
|
pix = d->pixmapsToCache.value(id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user