qpieslice_p.h
78 lines
| 2.1 KiB
| text/x-c
|
CLexer
|
r1365 | /**************************************************************************** | ||
** | ||||
|
r2776 | ** Copyright (C) 2015 The Qt Company Ltd | ||
|
r1365 | ** All rights reserved. | ||
|
r2776 | ** For any questions to The Qt Company, please use contact form at http://qt.io | ||
|
r1365 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r1365 | ** | ||
|
r2740 | ** Licensees holding valid commercial license for Qt may use this file in | ||
** accordance with the Qt License Agreement provided with the Software | ||||
** or, alternatively, in accordance with the terms contained in a written | ||||
|
r2776 | ** agreement between you and The Qt Company. | ||
|
r1365 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
|
r2740 | ** contact form at http://qt.io | ||
|
r1365 | ** | ||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2807 | // This file is not part of the Qt Chart API. It exists purely as an | ||
|
r1365 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
|
r1274 | #ifndef QPIESLICE_P_H | ||
#define QPIESLICE_P_H | ||||
|
r2714 | #include <QtCore/QObject> | ||
#include <QtCharts/QPieSlice> | ||||
#include <private/pieslicedata_p.h> | ||||
|
r1274 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r1323 | class QPieSeries; | ||
|
r1274 | |||
class QPieSlicePrivate : public QObject | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
QPieSlicePrivate(QPieSlice *parent); | ||||
~QPieSlicePrivate(); | ||||
|
r2104 | static QPieSlicePrivate *fromSlice(QPieSlice *slice); | ||
|
r1274 | |||
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); | ||||
|
r1494 | Q_SIGNALS: | ||
void labelPositionChanged(); | ||||
void explodedChanged(); | ||||
void labelArmLengthFactorChanged(); | ||||
void explodeDistanceFactorChanged(); | ||||
|
r1274 | private: | ||
|
r1323 | friend class QPieSeries; | ||
|
r1274 | friend class QPieSeriesPrivate; | ||
|
r2273 | friend class ChartThemeManager; | ||
|
r1274 | friend class PieChartItem; | ||
QPieSlice * const q_ptr; | ||||
Q_DECLARE_PUBLIC(QPieSlice) | ||||
|
r1323 | |||
PieSliceData m_data; | ||||
QPieSeries *m_series; | ||||
|
r1274 | }; | ||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r1274 | |||
#endif // QPIESLICE_P_H | ||||