QGraphicsItem::ItemClipsToShape is now default, should fix some nasty painting bugs in the future.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692061
This commit is contained in:
Matt Broadstone 2007-07-24 23:31:52 +00:00
parent 508d373bbe
commit 8f619a954b

View File

@ -49,6 +49,8 @@ Widget::Widget(QGraphicsItem *parent)
: QGraphicsItem(parent),
d(new Private)
{
setFlag(QGraphicsItem::ItemClipsToShape, true);
d->parent = dynamic_cast<Widget *>(parent);
if (d->parent) {