clip children

prevent from desktop vigets going into the panel
This commit is contained in:
Marco Martin 2011-12-06 21:11:30 +01:00
parent b7e335265f
commit b332cfade6

View File

@ -160,7 +160,7 @@ void Containment::init()
setCacheMode(NoCache);
setFlag(QGraphicsItem::ItemIsMovable, false);
setFlag(QGraphicsItem::ItemClipsChildrenToShape, false);
setFlag(QGraphicsItem::ItemClipsChildrenToShape, true);
setAcceptDrops(true);
setAcceptsHoverEvents(true);