##// END OF EJS Templates
Refactored themes; now enabled for line, scatter and pies...
Refactored themes; now enabled for line, scatter and pies Draft themes implemented for most of the series types. The themes are still missing most of the features, only the line color and line width can be defined.

File last commit:

r103:399cbfcd557c
r103:399cbfcd557c
Show More
pieslice.h
34 lines | 752 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 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;
SeriesTheme m_theme;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // PIESLICE_H