##// END OF EJS Templates
Fix zorder of axis, and ticks
Fix zorder of axis, and ticks

File last commit:

r267:8eda47151036
r272:1946c776c83b
Show More
barvalue_p.h
49 lines | 1006 B | text/x-c | CLexer
#ifndef BARVALUE_P_H
#define BARVALUE_P_H
#include "qchartglobal.h"
#include <QGraphicsItem>
#include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QBarSet;
// Visual class for floating bar values
// TODO: fonts, colors etc.
// By default these are not visible.
class BarValue : public QGraphicsItem // TODO: public QGraphicsObject for signals?
{
public:
BarValue(QBarSet &set, QGraphicsItem *parent = 0);
void setValueString(QString str);
QString valueString();
void setPen(const QPen& pen);
const QPen& pen();
void resize(qreal w, qreal h);
void setPos(qreal x, qreal y);
bool belongsToSet(QBarSet *set);
// From QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
private:
QBarSet& mBarSet;
QPen mPen;
QString mValueString;
qreal mXpos;
qreal mYpos;
qreal mWidth;
qreal mHeight;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARVALUE_P_H