##// END OF EJS Templates
Added size factor property to pie
Added size factor property to pie

File last commit:

r60:0be2c26f8dc1
r60:0be2c26f8dc1
Show More
pieslice.h
32 lines | 701 B | text/x-c | CLexer
#ifndef PIESLICE_H
#define PIESLICE_H
#include "qchartglobal.h"
#include <QGraphicsItem>
#include <QRectF>
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class PieSlice : public QGraphicsItem
{
public:
PieSlice(const QColor& color, qreal startAngle, qreal span, QRectF rect);
~PieSlice();
public: // from QGraphicsItem
QRectF boundingRect() const;
QPainterPath shape() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void hoverEnterEvent(QGraphicsSceneHoverEvent * event);
public:
QColor m_color;
qreal m_startAngle;
qreal m_span;
QRectF m_rect;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // PIESLICE_H