put it in the template too

svn path=/trunk/KDE/kdelibs/; revision=1022991
This commit is contained in:
Aaron J. Seigo 2009-09-13 17:17:02 +00:00
parent 9525a9a267
commit 1b53393043

View File

@ -47,6 +47,8 @@ public:
void setPixmap(<Name> *q)
{
if (imagePath.isEmpty()) {
delete svg;
svg = 0;
return;
}
@ -64,6 +66,8 @@ public:
QPainter p(&pm);
svg->paint(&p, pm.rect());
} else {
delete svg;
svg = 0;
pm = QPixmap(absImagePath);
}