##// END OF EJS Templates
Fix setting custom color to pie. Now the pie knows if the color is set by the user.
Fix setting custom color to pie. Now the pie knows if the color is set by the user.

File last commit:

r640:9742bfe3f470
r691:02b456949de5
Show More
chartbackground_p.h
33 lines | 590 B | text/x-c | CLexer
/ src / chartbackground_p.h
Michal Klocek
Add missing files from last commit
r640 #ifndef CHARTBACKGROUND_H_
#define CHARTBACKGROUND_H_
#include "qchartglobal.h"
#include <QGraphicsRectItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartBackground: public QGraphicsRectItem
{
public:
ChartBackground(QGraphicsItem *parent =0);
~ChartBackground();
void setDimeter(int dimater);
int diameter() const;
protected:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
private:
int roundness(qreal size) const;
private:
int m_diameter;
};
#endif /* CHARTBACKGROUND_H_ */
QTCOMMERCIALCHART_END_NAMESPACE