1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the Qt Charts module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:GPL$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see https://www.qt.io/terms-conditions. For further
15** information use the contact form at https://www.qt.io/contact-us.
16**
17** GNU General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU
19** General Public License version 3 or (at your option) any later version
20** approved by the KDE Free Qt Foundation. The licenses are as published by
21** the Free Software Foundation and appearing in the file LICENSE.GPL3
22** included in the packaging of this file. Please review the following
23** information to ensure the GNU General Public License requirements will
24** be met: https://www.gnu.org/licenses/gpl-3.0.html.
25**
26** $QT_END_LICENSE$
27**
28****************************************************************************/
29
30#ifndef TST_QABSTRACTAXIS_H
31#define TST_QABSTRACTAXIS_H
32
33#include <QtTest/QtTest>
34#include <tst_definitions.h>
35#include <QtCharts/QAbstractAxis>
36#include <QtCharts/QChartView>
37
38QT_CHARTS_USE_NAMESPACE
39
40class tst_QAbstractAxis : public QObject
41{
42 Q_OBJECT
43
44public slots:
45 virtual void initTestCase();
46 virtual void cleanupTestCase();
47 virtual void cleanup();
48
49protected:
50 void initAxes(QAbstractAxis *axis, QAbstractSeries *series);
51
52private slots:
53 void axisPen_data();
54 void axisPen();
55 void axisPenColor_data();
56 void axisPenColor();
57 void gridLinePen_data();
58 void gridLinePen();
59 void minorGridLinePen_data();
60 void minorGridLinePen();
61 void lineVisible_data();
62 void lineVisible();
63 void gridLineVisible_data();
64 void gridLineVisible();
65 void minorGridLineVisible_data();
66 void minorGridLineVisible();
67 void gridLineColor_data();
68 void gridLineColor();
69 void minorGridLineColor_data();
70 void minorGridLineColor();
71 void visible_data();
72 void visible();
73 void labelsAngle_data();
74 void labelsAngle();
75 void labelsBrush_data();
76 void labelsBrush();
77 void labelsColor_data();
78 void labelsColor();
79 void labelsFont_data();
80 void labelsFont();
81 void labelsVisible_data();
82 void labelsVisible();
83 void orientation_data();
84 void orientation();
85 void setMax_data();
86 void setMax();
87 void setMin_data();
88 void setMin();
89 void setRange_data();
90 void setRange();
91 void shadesBorderColor_data();
92 void shadesBorderColor();
93 void shadesBrush_data();
94 void shadesBrush();
95 void shadesColor_data();
96 void shadesColor();
97 void shadesPen_data();
98 void shadesPen();
99 void shadesVisible_data();
100 void shadesVisible();
101 void show_data();
102 void show();
103 void hide_data();
104 void hide();
105
106protected:
107 void qabstractaxis();
108protected:
109 QChartView* m_view;
110 QChart* m_chart;
111 QAbstractAxis* m_axis;
112 QAbstractSeries* m_series;
113};
114
115#endif
116

source code of qtcharts/tests/auto/qabstractaxis/tst_qabstractaxis.h