##// END OF EJS Templates
Fixes line uder grid issue
Fixes line uder grid issue

File last commit:

r183:45734e367adb
r190:3ea3ba4a3395
Show More
bar_p.h
49 lines | 915 B | text/x-c | CLexer
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #ifndef BAR_H
#define BAR_H
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #include "chartitem_p.h"
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #include "qchartglobal.h"
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #include <QGraphicsItem>
sauimone
brush support for bargroups
r183 #include <QPen>
#include <QBrush>
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
QTCOMMERCIALCHART_BEGIN_NAMESPACE
// Single bar item of chart
Tero Ahola
Refactoring continued: restored ChartItem class
r104 class Bar : public ChartItem
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
public:
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 Bar(QGraphicsItem *parent=0);
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74
sauimone
theme interface to barcharts. some minor fixes
r113 public: // from ChartItem
Michal Klocek
Adds layout support for charts....
r115 void setSize(const QSizeF &size);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
// Layout Stuff
sauimone
brush support for bargroups
r183 void resize(qreal w, qreal h); // Size of bar.
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 void setPos(qreal x, qreal y);
sauimone
brush support for bargroups
r183 void setPen(QPen pen);
void setBrush(QBrush brush);
void setColor( QColor col); // deprecated
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
public:
// From QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
QRectF boundingRect() const;
private:
sauimone
theme interface to barcharts. some minor fixes
r113 qreal mHeight;
qreal mWidth;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 qreal mXpos;
qreal mYpos;
QColor mColor;
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74
sauimone
brush support for bargroups
r183 QBrush mBrush;
QPen mPen;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BAR_H