##// END OF EJS Templates
Fix test application to have valid window size
Fix test application to have valid window size

File last commit:

r146:6c3759bde1fd
r147:ede69107bdd8
Show More
pieslice.h
36 lines | 850 B | text/x-c | CLexer
#ifndef PIESLICE_H
#define PIESLICE_H
#include "qchartglobal.h"
#include "charttheme_p.h"
#include <QGraphicsItem>
#include <QRectF>
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class PiePresenter;
class PieSlice : public QGraphicsItem
{
public:
PieSlice(PiePresenter *piePresentation, int seriesIndex, qreal startAngle, qreal span);
~PieSlice();
public: // from QGraphicsItem
QRectF boundingRect() const;
QPainterPath shape() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void mousePressEvent(QGraphicsSceneMouseEvent *event);
private:
int m_seriesIndex;
qreal m_startAngle;
qreal m_span;
QRectF m_rect;
//SeriesTheme m_theme;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // PIESLICE_H