// Purpose : Constructor
//=======================================================================
GraphicsView_Object::GraphicsView_Object( QGraphicsItem* theParent )
-: QGraphicsItemGroup( theParent ),
+: QGraphicsItem( theParent ),
myPriority( 0 ),
myIsOnTop( false ),
myIsHighlighted( false ),
{
if( QGraphicsItem* aChild = aChildIter.next() )
{
- removeFromGroup( aChild );
if( QGraphicsScene* aScene = aChild->scene() )
aScene->removeItem( aChild );
delete aChild;
#include "GraphicsView_Defs.h"
-#include <QGraphicsItemGroup>
+#include <QGraphicsItem>
class GraphicsView_ViewPort;
Class : GraphicsView_Object
Description : Base class for all objects displayed at the scene
*/
-class GRAPHICSVIEW_API GraphicsView_Object : public QGraphicsItemGroup
+class GRAPHICSVIEW_API GraphicsView_Object : public QGraphicsItem
{
public:
GraphicsView_Object( QGraphicsItem* theParent = 0 );