##// END OF EJS Templates
Add ownerships takeover to chartaxis
Add ownerships takeover to chartaxis

File last commit:

r247:8f79fcf18e90
r248:ded845353666
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
sauimone
making bar as qobject causes crash for some reason. rewinding back a bit...
r247 #include "chartitem_p.h"
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #include "qchartglobal.h"
sauimone
making bar as qobject causes crash for some reason. rewinding back a bit...
r247 #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
sauimone
making bar as qobject causes crash for some reason. rewinding back a bit...
r247 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
making bar as qobject causes crash for some reason. rewinding back a bit...
r247 public: // from ChartItem
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);
sauimone
making bar as qobject causes crash for some reason. rewinding back a bit...
r247 void setColor( QColor col); // deprecated
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
public:
sauimone
signals and slots for bars and sets
r239 // From QGraphicsItem
sauimone
making bar as qobject causes crash for some reason. rewinding back a bit...
r247
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 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;
sauimone
making bar as qobject causes crash for some reason. rewinding back a bit...
r247 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