##// END OF EJS Templates
Remove PlotDomain , use Domain insted...
Remove PlotDomain , use Domain insted * clean old setSize SetPlotDomain iterface * remove all PlotDomain references

File last commit:

r149:23a271e217e1
r149:23a271e217e1
Show More
piepresenter.h
43 lines | 963 B | text/x-c | CLexer
Jani Honkonen
Moved pie stuff to own .pri file and rename stuff
r146 #ifndef PIEPRESENTER_H
#define PIEPRESENTER_H
Jani Honkonen
Pie chart refactoring
r142
#include "chartitem_p.h"
#include "qpieseries.h"
class QGraphicsItem;
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class PieSlice;
Jani Honkonen
Moved pie stuff to own .pri file and rename stuff
r146 class PiePresenter : public QObject, public ChartItem
Jani Honkonen
Pie chart refactoring
r142 {
Q_OBJECT
public:
// TODO: use a generic data class instead of x and y
Jani Honkonen
Moved pie stuff to own .pri file and rename stuff
r146 PiePresenter(QGraphicsItem *parent, QPieSeries *series);
~PiePresenter();
Jani Honkonen
Pie chart refactoring
r142
public: // from ChartItem
QRectF boundingRect() const { return m_rect; }
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) {}
public:
void seriesChanged();
void resize();
QRectF pieRect() const { return m_pieRect; }
public Q_SLOTS:
void handleDomainChanged(const Domain& domain);
void handleGeometryChanged(const QRectF& rect);
private:
friend class PieSlice;
QList<PieSlice*> m_slices;
QPieSeries *m_pieSeries;
QRectF m_rect;
QRectF m_pieRect;
};
QTCOMMERCIALCHART_END_NAMESPACE
Jani Honkonen
Moved pie stuff to own .pri file and rename stuff
r146 #endif // PIEPRESENTER_H