##// END OF EJS Templates
Rest of the pie, bar, area and scatter properties to QML property tester
Rest of the pie, bar, area and scatter properties to QML property tester

File last commit:

r1307:7b3a3ea4ca65
r1308:dde391dc31a2
Show More
qpieslice_p.h
43 lines | 933 B | text/x-c | CLexer
Jani Honkonen
pie: added everything as a property in QPieSlice...
r1274 #ifndef QPIESLICE_P_H
#define QPIESLICE_P_H
#include <QObject>
#include "qpieslice.h"
#include "pieslicedata_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QPieSlicePrivate : public QObject
{
Q_OBJECT
public:
QPieSlicePrivate(QPieSlice *parent);
~QPieSlicePrivate();
static QPieSlicePrivate* fromSlice(QPieSlice *slice);
void setPen(const QPen &pen, bool themed);
void setBrush(const QBrush &brush, bool themed);
Tero Ahola
Use labelBrush instead of labelPen for text labels
r1307 void setLabelBrush(const QBrush &brush, bool themed);
Jani Honkonen
pie: added everything as a property in QPieSlice...
r1274 void setLabelFont(const QFont &font, bool themed);
void setPercentage(qreal percentage);
void setStartAngle(qreal angle);
void setAngleSpan(qreal span);
private:
PieSliceData m_data;
private:
friend class QPieSeriesPrivate;
friend class ChartTheme;
friend class PieChartItem;
QPieSlice * const q_ptr;
Q_DECLARE_PUBLIC(QPieSlice)
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QPIESLICE_P_H