1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // W A R N I N G |
5 | // ------------- |
6 | // |
7 | // This file is not part of the Qt Chart API. It exists purely as an |
8 | // implementation detail. This header file may change from version to |
9 | // version without notice, or even be removed. |
10 | // |
11 | // We mean it. |
12 | |
13 | #ifndef CHARTITEM_H |
14 | #define CHARTITEM_H |
15 | |
16 | #include <private/chartelement_p.h> |
17 | #include <private/chartpresenter_p.h> |
18 | #include <QtCharts/private/qchartglobal_p.h> |
19 | #include <QtWidgets/QGraphicsItem> |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | class Q_CHARTS_PRIVATE_EXPORT ChartItem : public ChartElement |
24 | { |
25 | Q_OBJECT |
26 | enum ChartItemTypes { AXIS_ITEM = UserType + 1, XYLINE_ITEM }; |
27 | public: |
28 | ChartItem(QAbstractSeriesPrivate *series,QGraphicsItem* item); |
29 | AbstractDomain* domain() const; |
30 | virtual void cleanup(); |
31 | |
32 | public Q_SLOTS: |
33 | virtual void handleDomainUpdated(); |
34 | |
35 | QAbstractSeriesPrivate* seriesPrivate() const {return m_series;} |
36 | |
37 | protected: |
38 | bool m_validData; |
39 | private: |
40 | QAbstractSeriesPrivate* m_series; |
41 | }; |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif /* CHARTITEM_H */ |
46 | |