https://github.com/ialhashim/topo-blend
Revision 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC, committed by ennetws on 13 March 2015, 18:17:18 UTC
1 parent c702819
Raw File
Tip revision: 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC
Create README.md
Tip revision: 39b1361
ShapeItem.h
#pragma once

#include "DemoGlobal.h"

class ShapeItem : public QGraphicsObject
{
	Q_OBJECT
public:
    explicit ShapeItem(QObject *parent = 0);

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    PropertyMap property;
    int width,height;

    int realHeight();
    int realWidth();

protected:
	virtual void mousePressEvent(QGraphicsSceneMouseEvent * event);
	virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent * event);

signals:
    void scrollToMe(ShapeItem*);

public slots:
    
};

Q_DECLARE_METATYPE(ShapeItem*)
back to top