##// END OF EJS Templates
Cleanup build setup...
Cleanup build setup * adds seprate pri files for bar line charts * keeps soruces/headers in subdirs

File last commit:

r186:a60a21158b5a
r249:bfba57666177
Show More
qlinechartseries.h
48 lines | 1.1 KiB | text/x-c | CLexer
#ifndef QLINECHARTSERIES_H_
#define QLINECHARTSERIES_H_
#include "qchartglobal.h"
#include "qchartseries.h"
#include <QDebug>
#include <QPen>
#include <QBrush>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QLineChartSeries : public QChartSeries
{
Q_OBJECT
public:
QLineChartSeries(QObject* parent=0);
virtual ~QLineChartSeries();
public: // from QChartSeries
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeLine;}
int add(qreal x, qreal y);
void set(int index,qreal x,qreal y);
void clear();
void setPen(const QPen& pen);
const QPen& pen() const { return m_pen;}
void setPointsVisible(bool visible);
bool isPointsVisible() const {return m_pointsVisible;}
int count() const;
qreal x(int pos) const;
qreal y(int pos) const;
friend QDebug operator<< (QDebug d, const QLineChartSeries series);
signals:
void changed(int index);
private:
QVector<qreal> m_x;
QVector<qreal> m_y;
QPen m_pen;
bool m_pointsVisible;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif