just toRect will suffice

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856498
This commit is contained in:
Aaron J. Seigo 2008-09-03 04:25:24 +00:00
parent 3c7c59d9f8
commit 2963de33e6

View File

@ -895,7 +895,7 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
contentsRect = option->exposedRect.intersected(contentsRect); contentsRect = option->exposedRect.intersected(contentsRect);
} }
QRect exposed = contentsRect.toAlignedRect(); QRect exposed = contentsRect.toRect();
if (widget && isContainment()) { if (widget && isContainment()) {
// note that the widget we get is actually the viewport of the view, not the view itself // note that the widget we get is actually the viewport of the view, not the view itself