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

File last commit:

r13:335e8906dfcb
r163:daab1c215b03
Show More
qseriespointgraphicsitem.h
18 lines | 468 B | text/x-c | CLexer
/ test / chartwidgettest / qseriespointgraphicsitem.h
Tero Ahola
Scatter data point now shown using a picture
r13 #ifndef QSERIESPOINTGRAPHICSITEM_H
#define QSERIESPOINTGRAPHICSITEM_H
#include <QGraphicsItem>
class QSeriesPointGraphicsItem : public QGraphicsItem
{
public:
QSeriesPointGraphicsItem(qreal dx, qreal dy, QGraphicsItem *parent = 0);
private:
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
qreal m_dx;
qreal m_dy;
};
#endif // QSERIESPOINTGRAPHICSITEM_H