Logo Search packages:      
Sourcecode: rosegarden version File versions

QCanvasItemGroup Class Reference

#include <qcanvasgroupableitem.h>

List of all members.

Detailed Description

This class implements QCanvasItem groups

An item group will keep its items in a fixed relative position when moved, just like in a drawing program where you can "bind" several items together so that they'll behave as a single item.

Proper behavior requires collaboration from the QCanvasView, though. When about to move an item, the QCanvasView object should first check if it's not a groupable item, and if so fetch its QCanvasItemGroup and move it instead.

Definition at line 103 of file qcanvasgroupableitem.h.

Public Member Functions

virtual void addItem (QCanvasItem *)
virtual void addItemWithRelativeCoords (QCanvasItem *)
virtual void advance (int stage)
virtual QRect boundingRect () const
virtual QRect boundingRectAdvanced () const
virtual bool collidesWith (const QCanvasItem *) const
virtual void draw (QPainter &)
virtual void moveBy (double dx, double dy)
 QCanvasItemGroup (QCanvas *)
virtual void removeItem (QCanvasItem *)
virtual int rtti () const
virtual void setActive (bool yes)
virtual void setEnabled (bool yes)
virtual void setSelected (bool yes)
virtual void setVisible (bool yes)

Protected Attributes

QCanvasItemList m_items

Private Member Functions

virtual bool collidesWith (const QCanvasSprite *, const QCanvasPolygonalItem *, const QCanvasRectangle *, const QCanvasEllipse *, const QCanvasText *) const

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index