##// 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
#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);
void setLabelBrush(const QBrush &brush, bool themed);
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