##// 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
Tero Ahola
Integrated draft version of pie series
r51 #ifndef PIESLICE_H
#define PIESLICE_H
#include "qchartglobal.h"
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #include "charttheme_p.h"
Tero Ahola
Integrated draft version of pie series
r51 #include <QGraphicsItem>
#include <QRectF>
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Jani Honkonen
Moved pie stuff to own .pri file and rename stuff
r146 class PiePresenter;
Tero Ahola
Integrated draft version of pie series
r51
class PieSlice : public QGraphicsItem
{
public:
Jani Honkonen
Moved pie stuff to own .pri file and rename stuff
r146 PieSlice(PiePresenter *piePresentation, int seriesIndex, qreal startAngle, qreal span);
Tero Ahola
Integrated draft version of pie series
r51 ~PieSlice();
public: // from QGraphicsItem
QRectF boundingRect() const;
QPainterPath shape() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
Jani Honkonen
Pie chart refactoring
r142 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void mousePressEvent(QGraphicsSceneMouseEvent *event);
Tero Ahola
Integrated draft version of pie series
r51
Jani Honkonen
Pie chart refactoring
r142 private:
int m_seriesIndex;
Tero Ahola
Integrated draft version of pie series
r51 qreal m_startAngle;
qreal m_span;
Michal Klocek
Refactor themes...
r143 QRectF m_rect;
Jani Honkonen
Pie chart refactoring
r142 //SeriesTheme m_theme;
Tero Ahola
Integrated draft version of pie series
r51 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // PIESLICE_H