1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include "declarativeaxes_p.h"
5#include <QtCharts/QAbstractAxis>
6
7QT_BEGIN_NAMESPACE
8
9DeclarativeAxes::DeclarativeAxes(QObject *parent) :
10 QObject(parent),
11 m_axisX(0),
12 m_axisY(0),
13 m_axisXTop(0),
14 m_axisYRight(0)
15{
16}
17
18void DeclarativeAxes::setAxisX(QAbstractAxis *axis)
19{
20 m_axisX = axis;
21 emit axisXChanged(axis);
22}
23
24void DeclarativeAxes::setAxisY(QAbstractAxis *axis)
25{
26 m_axisY = axis;
27 emit axisYChanged(axis);
28}
29
30void DeclarativeAxes::setAxisXTop(QAbstractAxis *axis)
31{
32 m_axisXTop = axis;
33 emit axisXTopChanged(axis);
34}
35
36void DeclarativeAxes::setAxisYRight(QAbstractAxis *axis)
37{
38 m_axisYRight = axis;
39 emit axisYRightChanged(axis);
40}
41
42QT_END_NAMESPACE
43
44#include "moc_declarativeaxes_p.cpp"
45

source code of qtcharts/src/chartsqml2/declarativeaxes.cpp