##// END OF EJS Templates
Adds default gemoetry change call in case of new series
Adds default gemoetry change call in case of new series

File last commit:

r118:4d1d9ed7ae03
r148:38a3d03baaf6
Show More
bar_p.h
44 lines | 869 B | text/x-c | CLexer
#ifndef BAR_H
#define BAR_H
#include "chartitem_p.h"
#include "qchartglobal.h"
#include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
// Single bar item of chart
class Bar : public ChartItem
{
public:
Bar(QGraphicsItem *parent=0);
public: // from ChartItem
void setSize(const QSizeF &size);
void setPlotDomain(const PlotDomain& data);
// Layout Stuff
void resize( qreal w, qreal h ); // Size of bar.
void setColor( QColor col ); // Color of bar
void setPos(qreal x, qreal y);
public:
// From QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
QRectF boundingRect() const;
private:
qreal mHeight;
qreal mWidth;
qreal mXpos;
qreal mYpos;
QColor mColor;
PlotDomain mPlotDomain;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BAR_H