##// END OF EJS Templates
review fix: Removed iterator from barseries. Remove const from brush and pen. Renamed setters for tooltip, floating values and separators
review fix: Removed iterator from barseries. Remove const from brush and pen. Renamed setters for tooltip, floating values and separators

File last commit:

r349:7594bc4927de
r357:82b904eaae07
Show More
qlineseries.h
52 lines | 1.2 KiB | text/x-c | CLexer
Michal Klocek
Fix naming convention for lineseries...
r144 #ifndef QLINECHARTSERIES_H_
#define QLINECHARTSERIES_H_
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Michal Klocek
Refactor current draft to fit int current design specs...
r21 #include "qchartseries.h"
Michal Klocek
adds missing files form previous commit
r12 #include <QDebug>
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 #include <QPen>
#include <QBrush>
Michal Klocek
adds missing files form previous commit
r12
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
adds missing files form previous commit
r12
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 class QTCOMMERCIALCHART_EXPORT QLineSeries : public QChartSeries
Michal Klocek
adds missing files form previous commit
r12 {
Michal Klocek
Refactors qchart , adds line animation...
r131 Q_OBJECT
Michal Klocek
adds missing files form previous commit
r12 public:
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 QLineSeries(QObject* parent=0);
virtual ~QLineSeries();
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
One more alternative for changing themes
r108 public: // from QChartSeries
Tero Ahola
Renamed to QtCommercialChart
r30 virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeLine;}
Michal Klocek
Remove index from QLineChartSeries API
r348 void add(qreal x, qreal y);
void add(const QPointF& point);
void replace(qreal x,qreal y);
void replace(const QPointF& point);
void remove(qreal x);
void remove(const QPointF& point);
Michal Klocek
adds missing files form previous commit
r12 void clear();
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
void setPen(const QPen& pen);
Michal Klocek
Refactor documentation...
r331 QPen pen() const { return m_pen;}
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
Michal Klocek
minor. missing setter for line series
r186 void setPointsVisible(bool visible);
Michal Klocek
Add pointsVisible setting for line series
r185 bool isPointsVisible() const {return m_pointsVisible;}
Michal Klocek
adds missing files form previous commit
r12 int count() const;
qreal x(int pos) const;
qreal y(int pos) const;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 friend QDebug operator<< (QDebug d, const QLineSeries series);
Michal Klocek
adds missing files form previous commit
r12
Michal Klocek
Refactors qchart , adds line animation...
r131 signals:
void changed(int index);
Michal Klocek
adds missing files form previous commit
r12 private:
Michal Klocek
Refactors qchart , adds line animation...
r131 QVector<qreal> m_x;
QVector<qreal> m_y;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QPen m_pen;
Michal Klocek
Add pointsVisible setting for line series
r185 bool m_pointsVisible;
Michal Klocek
adds missing files form previous commit
r12 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Michal Klocek
adds missing files form previous commit
r12 #endif