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_QXYSERIES_H
31#define TST_QXYSERIES_H
32
33#include <QtTest/QtTest>
34#include <QtCharts/QXYSeries>
35#include <QtCharts/QChartView>
36#include <QtGui/QStandardItemModel>
37#include <tst_definitions.h>
38
39QT_CHARTS_USE_NAMESPACE
40
41class tst_QXYSeries : public QObject
42{
43 Q_OBJECT
44
45public slots:
46 virtual void initTestCase();
47 virtual void cleanupTestCase();
48 virtual void init();
49 virtual void cleanup();
50
51private slots:
52 void seriesName();
53 void seriesVisible();
54 void pointLabelsFormat();
55 void pointLabelsVisible();
56 void pointLabelsFont();
57 void pointLabelsColor();
58 void pointLabelsClipping();
59 void seriesOpacity();
60 void oper_data();
61 void oper();
62 void pen_data();
63 void pen();
64 void pointsVisible_raw_data();
65 void pointsVisible_raw();
66 void append_raw_data();
67 void append_raw();
68 void append_chart_data();
69 void append_chart();
70 void append_chart_animation_data();
71 void append_chart_animation();
72 void chart_append_data();
73 void chart_append();
74 void count_raw_data();
75 void count_raw();
76 void remove_raw_data();
77 void remove_raw();
78 void remove_chart_data();
79 void remove_chart();
80 void remove_chart_animation_data();
81 void remove_chart_animation();
82 void clear_raw_data();
83 void clear_raw();
84 void clear_chart_data();
85 void clear_chart();
86 void clear_chart_animation_data();
87 void clear_chart_animation();
88 void replace_raw_data();
89 void replace_raw();
90 void replace_chart_data();
91 void replace_chart();
92 void replace_chart_animation_data();
93 void replace_chart_animation();
94 void insert_data();
95 void insert();
96 void changedSignals();
97protected:
98 void append_data();
99 void count_data();
100 void pointsVisible_data();
101
102protected:
103 QChartView* m_view;
104 QChart* m_chart;
105 QXYSeries* m_series;
106};
107
108#endif
109

source code of qtcharts/tests/auto/qxyseries/tst_qxyseries.h