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 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | ChartElement::ChartElement(QGraphicsItem* item): |
12 | QGraphicsObject(item), |
13 | m_presenter(0), |
14 | m_themeManager(0), |
15 | m_dataSet(0) |
16 | { |
17 | |
18 | } |
19 | |
20 | void ChartElement::setPresenter(ChartPresenter *presenter) |
21 | { |
22 | m_presenter = presenter; |
23 | } |
24 | |
25 | ChartPresenter *ChartElement::presenter() const |
26 | { |
27 | return m_presenter; |
28 | } |
29 | |
30 | void ChartElement::setThemeManager(ChartThemeManager *manager) |
31 | { |
32 | m_themeManager = manager; |
33 | } |
34 | |
35 | ChartThemeManager* ChartElement::themeManager() const |
36 | { |
37 | return m_themeManager; |
38 | } |
39 | |
40 | void ChartElement::setDataSet(ChartDataSet *dataSet) |
41 | { |
42 | m_dataSet = dataSet; |
43 | } |
44 | |
45 | ChartDataSet *ChartElement::dataSet() const |
46 | { |
47 | return m_dataSet; |
48 | } |
49 | |
50 | QT_END_NAMESPACE |
51 |