summaryrefslogtreecommitdiffstats
path: root/tests/wavechart/wavechart.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@digia.com>2012-05-21 10:58:11 +0300
committerMichal Klocek <michal.klocek@digia.com>2012-05-21 11:47:32 +0300
commit49edf2d3495fa615f76866f5976e14073c498ccc (patch)
tree8a16aff0be9e3e91db89eaa2a5347622ebb8f687 /tests/wavechart/wavechart.h
parent84c5353058e3c0ee9b4fa60e218dc0fa42ace007 (diff)
Qt name convetion: move test to tests
Diffstat (limited to 'tests/wavechart/wavechart.h')
-rw-r--r--tests/wavechart/wavechart.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/wavechart/wavechart.h b/tests/wavechart/wavechart.h
new file mode 100644
index 00000000..3df98c73
--- /dev/null
+++ b/tests/wavechart/wavechart.h
@@ -0,0 +1,44 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Digia Plc
+** All rights reserved.
+** For any questions to Digia, please use contact form at http://qt.digia.com
+**
+** This file is part of the Qt Commercial Charts Add-on.
+**
+** $QT_BEGIN_LICENSE$
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.
+**
+** If you have questions regarding the use of this file, please use
+** contact form at http://qt.digia.com
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include <QTimer>
+#include <QTime>
+#include <QObject>
+#include <QLineSeries>
+#include <QChartView>
+
+QTCOMMERCIALCHART_USE_NAMESPACE
+
+class WaveChart: public QChartView
+{
+ Q_OBJECT
+
+public:
+ WaveChart(QChart* chart, QWidget* parent);
+
+private slots:
+ void update();
+
+private:
+ QLineSeries* m_series;
+ int m_wave;
+ qreal m_step;
+ QTimer m_timer;
+};