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 CHARTELEMENT_H
14#define CHARTELEMENT_H
15
16#include <QtCharts/QChartGlobal>
17#include <QtCore/QObject>
18#include <QtCore/QRect>
19#include <QGraphicsObject>
20#include <QtCharts/private/qchartglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class ChartAnimator;
25class ChartPresenter;
26class ChartAnimation;
27class ChartThemeManager;
28class AbstractDomain;
29class ChartDataSet;
30
31class Q_CHARTS_PRIVATE_EXPORT ChartElement: public QGraphicsObject
32{
33
34public:
35 explicit ChartElement(QGraphicsItem* item = 0);
36
37 virtual ChartAnimation *animation() const { return 0; }
38 virtual void setPresenter(ChartPresenter *presenter);
39 ChartPresenter *presenter() const;
40 virtual void setThemeManager(ChartThemeManager *manager);
41 ChartThemeManager* themeManager() const;
42 virtual void setDataSet(ChartDataSet *dataSet);
43 ChartDataSet *dataSet() const;
44
45private:
46 ChartPresenter *m_presenter;
47 ChartThemeManager *m_themeManager;
48 ChartDataSet *m_dataSet;
49};
50
51QT_END_NAMESPACE
52
53#endif
54

source code of qtcharts/src/charts/chartelement_p.h