##// END OF EJS Templates
Arm test fix
Arm test fix

File last commit:

r2379:9645dba0fec9
r2391:f36ae3238176
Show More
callout.h
32 lines | 666 B | text/x-c | CLexer
Marek Rosa
Added callout example (Drawing on top of chart)
r2150 #ifndef CALLOUT_H
#define CALLOUT_H
#include <QGraphicsItem>
#include <QFont>
class QGraphicsSceneMouseEvent;
class Callout : public QGraphicsItem
{
public:
Callout(QGraphicsItem * parent = 0);
void setText(const QString &text);
void setAnchor(QPointF point);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,QWidget *widget);
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
private:
QString m_text;
QRectF m_textRect;
Marek Rosa
Callout example: added extra space around the text
r2378 QRectF m_rect;
Marek Rosa
Added callout example (Drawing on top of chart)
r2150 QPointF m_anchor;
QFont m_font;
};
#endif // CALLOUT_H