Debian Codegraph @

tests/manual/presenterchart/chartview.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 CHARTVIEW_H
5 #define CHARTVIEW_H
6
7 #include <QtCharts/QChartView>
8 #include <QtCore/QTimer>
9
10 QT_USE_NAMESPACE
11
12 //![1]
13 class ChartView: public QChartView
14 {
15 Q_OBJECT
16 public:
17 ChartView(QChart *chart, QWidget *parent = 0);
18 virtual ~ChartView();
19
20 public slots:
21 void handleTimeout();
22
23 private:
24 QTimer m_timer;
25 QList<QAbstractSeries *> m_series;
26 QStringList m_titles;
27 int m_index;
28 QChart *m_chart;
29 };
30 //![1]
31
32 #endif /* CHARTVIEW_H */