##// END OF EJS Templates
Fixes for docs , adds xyseries docs
Fixes for docs , adds xyseries docs

File last commit:

r481:676000b99479
r481:676000b99479
Show More
qscatterseries.h
52 lines | 1.1 KiB | text/x-c | CLexer
#ifndef QSCATTERSERIES_H
#define QSCATTERSERIES_H
#include "qchartglobal.h"
#include "qxyseries.h"
#include <QRectF>
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QScatterSeriesPrivate;
class QTCOMMERCIALCHART_EXPORT QScatterSeries : public QXYSeries
{
Q_OBJECT
public:
enum MarkerShape {
// TODO: to be defined by the graphics design
// TODO: marker shapes: "x", star, rectangle, tilted rect, triangle, circle, dot
MarkerShapeDefault = 0,
MarkerShapeX,
MarkerShapeRectangle,
MarkerShapeRoundedRectangle,
MarkerShapeTiltedRectangle,
MarkerShapeTriangle,
MarkerShapeCircle
};
public:
QScatterSeries(QObject *parent = 0);
~QScatterSeries();
public: // from QChartSeries
QSeriesType type() const { return QSeries::SeriesTypeScatter; }
public:
MarkerShape shape() const;
void setShape(MarkerShape shape);
qreal size() const;
void setSize(qreal size);
signals:
void clicked(const QPointF& point);
private:
MarkerShape m_shape;
qreal m_size;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSCATTERSERIES_H