##// END OF EJS Templates
Code review: Fixed simple issues in Bar and Legend
Code review: Fixed simple issues in Bar and Legend

File last commit:

r599:86354d1a97be
r737:e81beeb51921
Show More
chartview.h
37 lines | 590 B | text/x-c | CLexer
#ifndef CHARTVIEW_H_
#define CHARTVIEW_H_
#include <QChartView>
#include <QTimer>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QSplineSeries;
class QLineSeries;
QTCOMMERCIALCHART_END_NAMESPACE
QTCOMMERCIALCHART_USE_NAMESPACE
//![1]
class ChartView: public QChartView
{
Q_OBJECT
public:
ChartView(QWidget* parent=0);
virtual ~ChartView();
public slots:
void handleTimeout();
private:
QTimer m_timer;
QLineSeries* m_series0;
QSplineSeries* m_series1;
QStringList m_titles;
qreal m_step;
qreal m_x;
qreal m_y;
};
//![1]
#endif /* CHARTVIEW_H_ */