##// 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:

r116:999187e32a9b
r148:38a3d03baaf6
Show More
barlabel_p.h
36 lines | 677 B | text/x-c | CLexer
#ifndef BARLABEL_H
#define BARLABEL_H
#include "chartitem_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class BarLabel : public ChartItem
{
public:
BarLabel(QGraphicsItem* parent = 0);
void set(QString label);
void setPos(qreal x, qreal y);
// From ChartItem
void setSize(const QSizeF &size);
void setPlotDomain(const PlotDomain& data);
// From QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
private:
PlotDomain mDomain;
QSizeF mSize;
QString mLabel;
qreal mXpos;
qreal mYpos;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARLABEL_H