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
BlendPathSubButton.h
#pragma once

#include <QGraphicsObject>
#include "Blender.h"

class BlendPathSubButton : public QGraphicsObject
{
    Q_OBJECT
	Q_PROPERTY(QPointF pos READ pos WRITE setPos)

public:
    explicit BlendPathSubButton(int width, int height, Blender * blender, int z_order = 0);

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

	PropertyMap property;
	Blender * blender;

protected:
	virtual void mousePressEvent(QGraphicsSceneMouseEvent * event);
	bool isUnderMouse();

private:
    QRectF m_geometry;

signals:
    
public slots:
    
};
back to top