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:
parent
508d373bbe
commit
8f619a954b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user