32 #include <QTextLayout>
34 class QGraphicsSceneMouseEvent;
41 class QTapAndHoldGesture;
71 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option=0,QWidget *widget=0);
74 void signalHit(
const QPointF pt = QPointF());
104 virtual bool resize(
const QSize& s);
105 virtual bool resize(quint32 newWidth,quint32 newHeight);
107 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option=0,QWidget *widget=0);
111 virtual bool valid();
113 virtual void setLabel(
const QString& v);
115 virtual void setLabel(
const QString& v,quint32 fontSizePx);
141 virtual bool tapGesture(QTapGesture *tapEvent);
145 virtual bool panGesture(QPanGesture *panEvent) {
return true; }