@@ -0,0 +1,48 | |||
|
1 | #ifndef PIESLICEDATA_P_H | |
|
2 | #define PIESLICEDATA_P_H | |
|
3 | ||
|
4 | #include <qchartglobal.h> | |
|
5 | #include <QPen> | |
|
6 | #include <QBrush> | |
|
7 | ||
|
8 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
|
9 | ||
|
10 | class PieSliceData | |
|
11 | { | |
|
12 | public: | |
|
13 | PieSliceData() | |
|
14 | { | |
|
15 | m_value = 0; | |
|
16 | m_percentage = 0; | |
|
17 | m_startAngle = 0; | |
|
18 | m_angleSpan = 0; | |
|
19 | m_isExploded = false; | |
|
20 | m_explodeDistanceFactor = 0.15; | |
|
21 | m_labelVisible = false; | |
|
22 | m_labelArmLengthFactor = 0.15; | |
|
23 | } | |
|
24 | ||
|
25 | qreal m_value; | |
|
26 | ||
|
27 | QPen m_slicePen; | |
|
28 | QBrush m_sliceBrush; | |
|
29 | ||
|
30 | bool m_isExploded; | |
|
31 | qreal m_explodeDistanceFactor; | |
|
32 | ||
|
33 | bool m_labelVisible; | |
|
34 | QString m_labelText; | |
|
35 | QFont m_labelFont; | |
|
36 | qreal m_labelArmLengthFactor; | |
|
37 | QPen m_labelArmPen; | |
|
38 | ||
|
39 | qreal m_percentage; | |
|
40 | QPointF m_center; | |
|
41 | qreal m_radius; | |
|
42 | qreal m_startAngle; | |
|
43 | qreal m_angleSpan; | |
|
44 | }; | |
|
45 | ||
|
46 | QTCOMMERCIALCHART_END_NAMESPACE | |
|
47 | ||
|
48 | #endif // PIESLICEDATA_P_H |
@@ -8,6 +8,7 SOURCES += \ | |||
|
8 | 8 | $$PWD/qpieslice.cpp |
|
9 | 9 | |
|
10 | 10 | PRIVATE_HEADERS += \ |
|
11 | $$PWD/pieslicedata_p.h \ | |
|
11 | 12 | $$PWD/piechartitem_p.h \ |
|
12 | 13 | $$PWD/piesliceitem_p.h \ |
|
13 | 14 | $$PWD/qpiesliceprivate_p.h \ |
@@ -2,45 +2,10 | |||
|
2 | 2 | #define QPIESLICEPRIVATE_P_H |
|
3 | 3 | |
|
4 | 4 | #include "qpieslice.h" |
|
5 | #include "pieslicedata_p.h" | |
|
5 | 6 | |
|
6 | 7 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
7 | 8 | |
|
8 | class PieSliceData | |
|
9 | { | |
|
10 | public: | |
|
11 | PieSliceData() | |
|
12 | { | |
|
13 | m_value = 0; | |
|
14 | m_percentage = 0; | |
|
15 | m_startAngle = 0; | |
|
16 | m_angleSpan = 0; | |
|
17 | m_isExploded = false; | |
|
18 | m_explodeDistanceFactor = 0.15; | |
|
19 | m_labelVisible = false; | |
|
20 | m_labelArmLengthFactor = 0.15; | |
|
21 | } | |
|
22 | ||
|
23 | qreal m_value; | |
|
24 | ||
|
25 | QPen m_slicePen; | |
|
26 | QBrush m_sliceBrush; | |
|
27 | ||
|
28 | bool m_isExploded; | |
|
29 | qreal m_explodeDistanceFactor; | |
|
30 | ||
|
31 | bool m_labelVisible; | |
|
32 | QString m_labelText; | |
|
33 | QFont m_labelFont; | |
|
34 | qreal m_labelArmLengthFactor; | |
|
35 | QPen m_labelArmPen; | |
|
36 | ||
|
37 | qreal m_percentage; | |
|
38 | QPointF m_center; | |
|
39 | qreal m_radius; | |
|
40 | qreal m_startAngle; | |
|
41 | qreal m_angleSpan; | |
|
42 | }; | |
|
43 | ||
|
44 | 9 | class QPieSlicePrivate |
|
45 | 10 | { |
|
46 | 11 | Q_DECLARE_PUBLIC(QPieSlice) |
General Comments 0
You need to be logged in to leave comments.
Login now