we have the cure cacheId() function, let's use it mmkay?
svn path=/trunk/KDE/kdelibs/; revision=892656
This commit is contained in:
parent
e22429867b
commit
8994cc5ad6
6
svg.cpp
6
svg.cpp
@ -150,8 +150,7 @@ class SvgPrivate
|
|||||||
return QPixmap();
|
return QPixmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString id = QString::fromLatin1("%3_%2_%1_").
|
QString id = cacheId(path);
|
||||||
arg(size.width()).arg(size.height()).arg(path);
|
|
||||||
|
|
||||||
if (!elementId.isEmpty()) {
|
if (!elementId.isEmpty()) {
|
||||||
id.append(elementId);
|
id.append(elementId);
|
||||||
@ -205,8 +204,7 @@ class SvgPrivate
|
|||||||
while (i != itemsToSave.end()) {
|
while (i != itemsToSave.end()) {
|
||||||
QPixmap p = i.value();
|
QPixmap p = i.value();
|
||||||
|
|
||||||
QString id = QString::fromLatin1("%3_%2_%1_").
|
QString id = cacheId(path);
|
||||||
arg(p.size().width()).arg(p.size().height()).arg(path);
|
|
||||||
|
|
||||||
if (!i.key().isEmpty()) {
|
if (!i.key().isEmpty()) {
|
||||||
id.append(i.key());
|
id.append(i.key());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user