##// END OF EJS Templates
Merge branch 'master' of https://git.it.local/repos/QtCommercialDevel-13049/charts Conflicts: example/example.pro

File last commit:

r183:45734e367adb
r207:1bc0eafcd96e merge
Show More
bar_p.h
49 lines | 915 B | text/x-c | CLexer
#ifndef BAR_H
#define BAR_H
#include "chartitem_p.h"
#include "qchartglobal.h"
#include <QGraphicsItem>
#include <QPen>
#include <QBrush>
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);
// Layout Stuff
void resize(qreal w, qreal h); // Size of bar.
void setPos(qreal x, qreal y);
void setPen(QPen pen);
void setBrush(QBrush brush);
void setColor( QColor col); // deprecated
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;
QBrush mBrush;
QPen mPen;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BAR_H