qpielegendmarker_p.h
66 lines
| 1.8 KiB
| text/x-c
|
CLexer
|
r2166 | /**************************************************************************** | ||
** | ||||
|
r2688 | ** Copyright (C) 2014 Digia Plc | ||
|
r2166 | ** All rights reserved. | ||
|
r2740 | ** For any questions to Digia, please use contact form at http://qt.io | ||
|
r2166 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r2166 | ** | ||
|
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 | ||||
** agreement between you and Digia. | ||||
|
r2166 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
|
r2740 | ** contact form at http://qt.io | ||
|
r2166 | ** | ||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2574 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | ||
|
r2166 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
#ifndef QPIELEGENDMARKER_P_H | ||||
#define QPIELEGENDMARKER_P_H | ||||
|
r2714 | #include <QtCharts/QChartGlobal> | ||
#include <private/qlegendmarker_p.h> | ||||
#include <private/legendmarkeritem_p.h> | ||||
#include <QtCharts/QPieSeries> | ||||
#include <QtCharts/QPieSlice> | ||||
|
r2167 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r2166 | |||
class QPieLegendMarker; | ||||
class QPieLegendMarkerPrivate : public QLegendMarkerPrivate | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
|
r2171 | explicit QPieLegendMarkerPrivate(QPieLegendMarker *q, QPieSeries *series, QPieSlice *slice, QLegend *legend); | ||
|
r2166 | virtual ~QPieLegendMarkerPrivate(); | ||
|
r2182 | // internal | ||
virtual QPieSeries* series(); | ||||
virtual QObject* relatedObject(); | ||||
|
r2166 | public Q_SLOTS: | ||
|
r2167 | virtual void updated(); | ||
|
r2166 | |||
private: | ||||
QPieLegendMarker *q_ptr; | ||||
|
r2167 | |||
|
r2193 | QPieSeries *m_series; | ||
QPieSlice *m_slice; | ||||
|
r2166 | |||
Q_DECLARE_PUBLIC(QPieLegendMarker) | ||||
}; | ||||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r2166 | |||
#endif // QPIELEGENDMARKER_P_H | ||||