forked from qt-creator/qt-creator
		
	Moved qmljsdebugger to a dir under qml/, made qmlobserver compile without creator dependencies and made it compile with debugging helpers. Reviewed-by: hjk
		
			
				
	
	
		
			30 lines
		
	
	
		
			756 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			756 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef SUBCOMPONENTMASKLAYERITEM_H
 | 
						|
#define SUBCOMPONENTMASKLAYERITEM_H
 | 
						|
 | 
						|
#include <QGraphicsPolygonItem>
 | 
						|
 | 
						|
namespace QmlJSDebugger {
 | 
						|
 | 
						|
class QDeclarativeViewObserver;
 | 
						|
 | 
						|
class SubcomponentMaskLayerItem : public QGraphicsPolygonItem
 | 
						|
{
 | 
						|
public:
 | 
						|
    explicit SubcomponentMaskLayerItem(QDeclarativeViewObserver *observer, QGraphicsItem *parentItem = 0);
 | 
						|
    int type() const;
 | 
						|
    void setCurrentItem(QGraphicsItem *item);
 | 
						|
    void setBoundingBox(const QRectF &boundingBox);
 | 
						|
    QGraphicsItem *currentItem() const;
 | 
						|
    QRectF itemRect() const;
 | 
						|
 | 
						|
private:
 | 
						|
    QDeclarativeViewObserver *m_observer;
 | 
						|
    QGraphicsItem *m_currentItem;
 | 
						|
    QGraphicsRectItem *m_borderRect;
 | 
						|
    QRectF m_itemPolyRect;
 | 
						|
};
 | 
						|
 | 
						|
} // namespace QmlJSDebugger
 | 
						|
 | 
						|
#endif // SUBCOMPONENTMASKLAYERITEM_H
 |