##// END OF EJS Templates
removing old commented code. removing domain parameter from handleseriesadded of pimpl. adding QLegend parameter to marker construction
removing old commented code. removing domain parameter from handleseriesadded of pimpl. adding QLegend parameter to marker construction

File last commit:

r2150:128c1c36c673
r2171:c0bd0c4881b1
Show More
callout.h
32 lines | 674 B | text/x-c | CLexer
#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;
QPointF m_anchor;
QFont m_font;
QPointF m_clickOffset;
};
#endif // CALLOUT_H