qscatterseries.h
38 lines
| 936 B
| text/x-c
|
CLexer
/ src / qscatterseries.h
Tero Ahola
|
r42 | #ifndef QSCATTERSERIES_H | ||
#define QSCATTERSERIES_H | ||||
#include "qchartseries.h" | ||||
Tero Ahola
|
r48 | #include <QRectF> | ||
Tero Ahola
|
r64 | #include <QColor> | ||
Tero Ahola
|
r42 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QScatterSeriesPrivate; | ||||
class QTCOMMERCIALCHART_EXPORT QScatterSeries : public QChartSeries | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
//QScatterSeries(QSeriesData *data, QObject *chart); | ||||
Tero Ahola
|
r61 | QScatterSeries(QObject *parent = 0); | ||
Tero Ahola
|
r42 | ~QScatterSeries(); | ||
public: // from QChartSeries | ||||
Tero Ahola
|
r51 | QChartSeriesType type() const { return QChartSeries::SeriesTypeScatter; } | ||
Tero Ahola
|
r61 | bool setData(QList<qreal> x, QList<qreal> y); | ||
Tero Ahola
|
r42 | |||
Tero Ahola
|
r48 | public Q_SLOTS: | ||
Tero Ahola
|
r54 | void chartSizeChanged(QRectF rect); | ||
Tero Ahola
|
r64 | void setMarkerColor(QColor color); | ||
Tero Ahola
|
r75 | QColor markerColor(); | ||
Tero Ahola
|
r54 | //void chartScaleChanged(qreal xscale, qreal yscale); | ||
Tero Ahola
|
r48 | |||
Tero Ahola
|
r42 | private: | ||
Q_DECLARE_PRIVATE(QScatterSeries) | ||||
Q_DISABLE_COPY(QScatterSeries) | ||||
friend class QChart; | ||||
QScatterSeriesPrivate *const d; | ||||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QSCATTERSERIES_H | ||||