we have the cure cacheId() function, let's use it mmkay?

svn path=/trunk/KDE/kdelibs/; revision=892656
This commit is contained in:
Marco Martin 2008-12-04 20:40:46 +00:00
parent e22429867b
commit 8994cc5ad6

View File

@ -150,8 +150,7 @@ class SvgPrivate
return QPixmap();
}
QString id = QString::fromLatin1("%3_%2_%1_").
arg(size.width()).arg(size.height()).arg(path);
QString id = cacheId(path);
if (!elementId.isEmpty()) {
id.append(elementId);
@ -205,8 +204,7 @@ class SvgPrivate
while (i != itemsToSave.end()) {
QPixmap p = i.value();
QString id = QString::fromLatin1("%3_%2_%1_").
arg(p.size().width()).arg(p.size().height()).arg(path);
QString id = cacheId(path);
if (!i.key().isEmpty()) {
id.append(i.key());