1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include <private/chartelement_p.h>
5#include <private/chartpresenter_p.h>
6#include <private/abstractdomain_p.h>
7#include <private/chartdataset_p.h>
8
9QT_BEGIN_NAMESPACE
10
11ChartElement::ChartElement(QGraphicsItem* item):
12 QGraphicsObject(item),
13 m_presenter(0),
14 m_themeManager(0),
15 m_dataSet(0)
16{
17
18}
19
20void ChartElement::setPresenter(ChartPresenter *presenter)
21{
22 m_presenter = presenter;
23}
24
25ChartPresenter *ChartElement::presenter() const
26{
27 return m_presenter;
28}
29
30void ChartElement::setThemeManager(ChartThemeManager *manager)
31{
32 m_themeManager = manager;
33}
34
35ChartThemeManager* ChartElement::themeManager() const
36{
37 return m_themeManager;
38}
39
40void ChartElement::setDataSet(ChartDataSet *dataSet)
41{
42 m_dataSet = dataSet;
43}
44
45ChartDataSet *ChartElement::dataSet() const
46{
47 return m_dataSet;
48}
49
50QT_END_NAMESPACE
51

source code of qtcharts/src/charts/chartelement.cpp