Debian Codegraph @

tests/manual/wavechart/wavechart.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #ifndef WAVECHART_H
5 #define WAVECHART_H
6
7 #include <QtCore/QTimer>
8 #include <QtCore/QTime>
9 #include <QtCore/QObject>
10 #include <QtCharts/QLineSeries>
11 #include <QtCharts/QChartView>
12
13 QT_USE_NAMESPACE
14
15 class WaveChart: public QChartView
16 {
17 Q_OBJECT
18
19 public:
20 WaveChart(QChart* chart, QWidget* parent);
21
22 private slots:
23 void update();
24
25 private:
26 QLineSeries* m_series;
27 int m_wave;
28 qreal m_step;
29 QTimer m_timer;
30 };
31
32 #endif