support for a shadow element

svn path=/trunk/KDE/kdelibs/; revision=880936
This commit is contained in:
Marco Martin 2008-11-06 22:07:42 +00:00
parent becefa7334
commit 3e275d8b05

View File

@ -401,6 +401,15 @@ void Meter::paint(QPainter *p,
}
angle = percentage * (d->maxrotate - d->minrotate) + d->minrotate;
if (d->image->hasElement("pointer-shadow")) {
p->save();
p->translate(rotateCenter+QPoint(2,3));
p->rotate(angle);
p->translate(-1 * rotateCenter);
d->paint(p, "pointer-shadow");
p->restore();
}
p->translate(rotateCenter);
p->rotate(angle);
p->translate(-1 * rotateCenter);