##// END OF EJS Templates
Refactor xyplotdata...
Refactor xyplotdata * rename xyplotdata to xyplotdomain * add proper initialization list to constructor * change xylinechartitem update interface

File last commit:

r25:9ee7e26e06fe
r25:9ee7e26e06fe
Show More
xygrid_p.h
31 lines | 665 B | text/x-c | CLexer
#ifndef XYGRID_H_
#define XYGRID_H_
#include <qchartconfig.h>
#include <xyplotdomain_p.h>
#include <QGraphicsItem>
QCHART_BEGIN_NAMESPACE
class XYGrid : public QGraphicsItem
{
public:
XYGrid(QGraphicsItem* parent = 0);
virtual ~XYGrid();
//from QGraphicsItem
virtual QRectF boundingRect() const;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
//TODO: this is just temporary interface
void setXYPlotData(const XYPlotDomain& xyPlotData);
void setSize(const QSizeF& rect);
private:
QRectF m_rect;
XYPlotDomain m_xyPlotData;
};
QCHART_END_NAMESPACE
#endif /* XYGRID_H_ */