#ifndef SUBCOMPONENTMASKLAYERITEM_H #define SUBCOMPONENTMASKLAYERITEM_H #include namespace QmlViewer { class QDeclarativeDesignView; class SubcomponentMaskLayerItem : public QGraphicsPolygonItem { public: explicit SubcomponentMaskLayerItem(QDeclarativeDesignView *view, QGraphicsItem *parentItem = 0); int type() const; void setCurrentItem(QGraphicsItem *item); void setBoundingBox(const QRectF &boundingBox); QGraphicsItem *currentItem() const; QRectF itemRect() const; private: QDeclarativeDesignView *m_view; QGraphicsItem *m_currentItem; QGraphicsRectItem *m_borderRect; QRectF m_itemPolyRect; }; } // namespace QmlViewer #endif // SUBCOMPONENTMASKLAYERITEM_H