put it in the template too
svn path=/trunk/KDE/kdelibs/; revision=1022991
This commit is contained in:
parent
9525a9a267
commit
1b53393043
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user