##// END OF EJS Templates
Restored bar series in chartwidgettest
Restored bar series in chartwidgettest

File last commit:

r276:d062a7f38647
r279:22961f3dbd96
Show More
bar_p.h
56 lines | 1.1 KiB | 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
#include "qchartglobal.h"
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 #include <QGraphicsObject>
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
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 class Bar : public QGraphicsObject
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 Q_OBJECT
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
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;
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 void mousePressEvent(QGraphicsSceneMouseEvent *event);
sauimone
updated barchart examples. minor fixes
r276 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256
Q_SIGNALS:
void clicked();
sauimone
updated barchart examples. minor fixes
r276 void hoverEntered();
void hoverLeaved();
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
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