1 #ifndef __CONTACT_LABEL__
2 #define __CONTACT_LABEL__
4 #include <QGraphicsWidget>
9 class ContactLabel
: public QGraphicsWidget
14 ContactLabel(QGraphicsItem
*parent
= 0);
16 void setText(const QString
&text
);
17 void setPen( const QPen
&pen
);
18 void setFont( const QFont
&font
);
20 void paint(QPainter
*painter
, const QStyleOptionGraphicsItem
*option
,
24 //void mousePressEvent(QGraphicsSceneMouseEvent *event);
25 //void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
26 void setHover(qreal value
);
28 virtual ~ContactLabel();