##// END OF EJS Templates
Adds axis scoped pointers (to be checked on windows)
Adds axis scoped pointers (to be checked on windows)

File last commit:

r777:25614395a437
r788:bfedfc6138fd
Show More
qxyseries.h
80 lines | 2.1 KiB | text/x-c | CLexer
Michal Klocek
Add missing files from previous commit
r466 #ifndef QXYSERIES_H_
#define QXYSERIES_H_
Jani Honkonen
Change includes in public headers from #include "xxx" -> #include <xxx>
r697 #include <qchartglobal.h>
#include <qseries.h>
Michal Klocek
Add missing files from previous commit
r466 #include <QPen>
#include <QBrush>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QXYSeries : public QSeries
{
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 Q_OBJECT
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 protected:
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 QXYSeries(QObject *parent = 0);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 virtual ~QXYSeries();
Michal Klocek
Add missing files from previous commit
r466
public:
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 void add(qreal x, qreal y);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void add(const QPointF &point);
Michal Klocek
Fixes for docs , adds xyseries docs
r481 void add(const QList<QPointF> points);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 void replace(qreal x,qreal y);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void replace(const QPointF &point);
Michal Klocek
Improves spline interpolation...
r622 void remove(qreal x);
Michal Klocek
Adds missing scatter intercation implementation...
r541 void remove(qreal x, qreal y);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void remove(const QPointF &point);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 void removeAll();
int count() const;
qreal x(int pos) const;
qreal y(int pos) const;
QList<QPointF> data();
QXYSeries& operator << (const QPointF &point);
QXYSeries& operator << (const QList<QPointF> points);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void setPen(const QPen &pen);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 QPen pen() const {return m_pen;}
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 void setBrush(const QBrush &brush);
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 QBrush brush() const {return m_brush;}
Michal Klocek
Spline series windows compilation fix
r467
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 bool setModel(QAbstractItemModel *model);
sauimone
const fix
r777 QAbstractItemModel* model() const { return m_model; }
Marek Rosa
Table model data example
r519
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical);
Marek Rosa
XYSeries: added support for limited mapping area
r734 virtual void setModelMappingShift(int first, int count = 0);
Marek Rosa
Table model data example
r519
sauimone
Q_SIGNALS and Q_SLOTS
r775 private Q_SLOTS:
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 void modelUpdated(QModelIndex topLeft, QModelIndex bottomRight);
void modelDataAboutToBeAdded(QModelIndex parent, int start, int end);
void modelDataAdded(QModelIndex parent, int start, int end);
void modelDataAboutToBeRemoved(QModelIndex parent, int start, int end);
void modelDataRemoved(QModelIndex parent, int start, int end);
Marek Rosa
Table model data example
r519
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void clicked(const QPointF &point);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 void updated();
void pointReplaced(int index);
void pointRemoved(int index);
void pointAdded(int index);
Michal Klocek
Add missing files from previous commit
r466
protected:
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 QVector<qreal> m_x;
QVector<qreal> m_y;
Marek Rosa
Table model data example
r519
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 QPen m_pen;
QBrush m_brush;
Marek Rosa
Table model data example
r519
Marek Rosa
XYSeries: added support for limited mapping area
r734 int m_mapX;
Marek Rosa
Table model data example
r519 int m_mapY;
Marek Rosa
XYSeries: added support for limited mapping area
r734 int m_mapFirst;
int m_mapCount;
bool m_mapLimited;
Qt::Orientation m_mapOrientation;
int tempItemsRemoved;
Michal Klocek
Add missing files from previous commit
r466 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif