##// END OF EJS Templates
domain applied to barcharts. x-axis domain doesn't make sense in this case
domain applied to barcharts. x-axis domain doesn't make sense in this case

File last commit:

r104:192e41096b68
r107:d78281b0a001
Show More
qscatterseries_p.h
44 lines | 1.1 KiB | text/x-c | CLexer
/ src / qscatterseries_p.h
#ifndef QSCATTERSERIESPRIVATE_H
#define QSCATTERSERIESPRIVATE_H
#include "qchartseries.h"
#include "charttheme_p.h"
#include "chartitem_p.h"
#include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
/*!
* The PIMPL class of QScatterSeries.
*/
class QScatterSeriesPrivate : public ChartItem
{
public:
QScatterSeriesPrivate(QGraphicsItem *parent);
public: // from ChartObjectInterface
void setSize(const QSize &size);
void setTheme(ChartTheme *theme);
void setPlotDomain(const PlotDomain& data);
public: // from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
public:
void resize(QRectF rect); // TODO: replace with setSize
// TODO: use the chart data class instead of list of x and y values?
QList<qreal> m_x;
QList<qreal> m_y;
qreal m_scalex;
qreal m_scaley;
QList<qreal> m_scenex;
QList<qreal> m_sceney;
QColor m_markerColor;
SeriesTheme m_theme;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSCATTERSERIESPRIVATE_H