qpieslice_p.h
80 lines
| 2.1 KiB
| text/x-c
|
CLexer
|
r1365 | /**************************************************************************** | ||
** | ||||
|
r2688 | ** Copyright (C) 2014 Digia Plc | ||
|
r1365 | ** All rights reserved. | ||
** For any questions to Digia, please use contact form at http://qt.digia.com | ||||
** | ||||
|
r2574 | ** This file is part of the Qt Enterprise Charts Add-on. | ||
|
r1365 | ** | ||
** $QT_BEGIN_LICENSE$ | ||||
|
r2574 | ** Licensees holding valid Qt Enterprise licenses may use this file in | ||
** accordance with the Qt Enterprise License Agreement provided with the | ||||
|
r1365 | ** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and Digia. | ||||
** | ||||
** If you have questions regarding the use of this file, please use | ||||
** contact form at http://qt.digia.com | ||||
** $QT_END_LICENSE$ | ||||
** | ||||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2574 | // This file is not part of the Qt Enterprise 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 | ||||
#include <QObject> | ||||
#include "qpieslice.h" | ||||
#include "pieslicedata_p.h" | ||||
|
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 | ||||