##// END OF EJS Templates
Bar series to use theme base colors. Pie brush minor fix....
Bar series to use theme base colors. Pie brush minor fix. Also fixed pen of bar series and stacked bar series.

File last commit:

r473:8959911f7807
r661:4756f59398b8
Show More
barvalue_p.h
50 lines | 953 B | text/x-c | CLexer
#ifndef BARVALUE_P_H
#define BARVALUE_P_H
#include "qchartglobal.h"
#include <QGraphicsObject>
#include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QBarSet;
// Visual class for floating bar values
// By default these are not visible.
class BarValue : public QGraphicsObject
{
Q_OBJECT
public:
BarValue(QBarSet &set, QGraphicsItem *parent = 0);
void setValueString(QString str);
QString valueString();
void setPen(const QPen pen);
QPen pen() const;
void resize(qreal w, qreal h);
void setPos(qreal x, qreal y);
// From QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
public Q_SLOTS:
void toggleVisible();
private:
QBarSet& mBarSet;
QPen mPen;
QString mValueString;
qreal mXpos;
qreal mYpos;
qreal mWidth;
qreal mHeight;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARVALUE_P_H