##// END OF EJS Templates
Make pie work better with chartwidgettest
Make pie work better with chartwidgettest

File last commit:

r149:23a271e217e1
r163:daab1c215b03
Show More
bar_p.h
42 lines | 793 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
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
theme interface to barcharts. some minor fixes
r113 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 setColor( QColor col ); // Color of bar
void setPos(qreal x, qreal y);
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
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BAR_H