42 #ifndef BOUNDINGRECTHIGHLIGHTER_H 43 #define BOUNDINGRECTHIGHLIGHTER_H 47 #include <QtCore/QObject> 48 #include <QtCore/QWeakPointer> 58 class QDeclarativeViewInspector;
115 #endif // BOUNDINGRECTHIGHLIGHTER_H
The QPainter class performs low-level painting on widgets and other paint devices.
QList< BoundingBox *> m_boxes
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
void freeBoundingBox(BoundingBox *box)
QGraphicsPolygonItem * highlightPolygon
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
~BoundingRectHighlighter()
The QObject class is the base class of all Qt objects.
The QGraphicsPolygonItem class provides a polygon item that you can add to a QGraphicsScene.
#define QT_FORWARD_DECLARE_CLASS(name)
void itemDestroyed(QObject *)
BoundingBox * boxFor(QGraphicsObject *item) const
BoundingBox * createBoundingBox(QGraphicsObject *itemToHighlight)
BoundingRectHighlighter(QDeclarativeViewInspector *view)
QList< BoundingBox *> m_freeBoxes
QGraphicsItem * parentItem() const
Returns a pointer to this item's parent item.
QObject * parent() const
Returns a pointer to the parent object.
QDeclarativeViewInspector * m_view
int type() const
Returns the type of an item as an int.
The QTimer class provides repetitive and single-shot timers.
void removeBoundingBox(BoundingBox *box)
The QGraphicsObject class provides a base class for all graphics items that require signals...
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...
QGraphicsPolygonItem * highlightPolygonEdge
void highlight(QList< QGraphicsObject *> items)
The QList class is a template class that provides lists.
QWeakPointer< QGraphicsObject > highlightedObject