qpieslice_p.h
45 lines
| 997 B
| text/x-c
|
CLexer
|
r1274 | #ifndef QPIESLICE_P_H | ||
#define QPIESLICE_P_H | ||||
#include <QObject> | ||||
#include "qpieslice.h" | ||||
#include "pieslicedata_p.h" | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
|
r1323 | class QPieSeries; | ||
|
r1274 | |||
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); | ||||
|
r1307 | void setLabelBrush(const QBrush &brush, bool themed); | ||
|
r1274 | void setLabelFont(const QFont &font, bool themed); | ||
void setPercentage(qreal percentage); | ||||
void setStartAngle(qreal angle); | ||||
void setAngleSpan(qreal span); | ||||
private: | ||||
|
r1323 | friend class QPieSeries; | ||
|
r1274 | friend class QPieSeriesPrivate; | ||
friend class ChartTheme; | ||||
friend class PieChartItem; | ||||
QPieSlice * const q_ptr; | ||||
Q_DECLARE_PUBLIC(QPieSlice) | ||||
|
r1323 | |||
PieSliceData m_data; | ||||
QPieSeries *m_series; | ||||
|
r1274 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QPIESLICE_P_H | ||||