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