2013-12-22 07:08:39 +00:00
|
|
|
from ..Qt import QtGui, QtCore
|
2012-05-11 22:05:41 +00:00
|
|
|
from .GraphicsObject import GraphicsObject
|
2012-03-02 02:55:32 +00:00
|
|
|
|
|
|
|
__all__ = ['ItemGroup']
|
|
|
|
class ItemGroup(GraphicsObject):
|
|
|
|
"""
|
|
|
|
Replacement for QGraphicsItemGroup
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, *args):
|
|
|
|
GraphicsObject.__init__(self, *args)
|
|
|
|
if hasattr(self, "ItemHasNoContents"):
|
|
|
|
self.setFlag(self.ItemHasNoContents)
|
|
|
|
|
|
|
|
def boundingRect(self):
|
|
|
|
return QtCore.QRectF()
|
|
|
|
|
|
|
|
def paint(self, *args):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def addItem(self, item):
|
|
|
|
item.setParentItem(self)
|
|
|
|
|