29 QPainterPath
shape(
void)
const;
30 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
32 QVariant
itemChange(GraphicsItemChange change,
const QVariant &value);
53 static const qreal cornerRadius;
54 static const qreal borderWidth;
55 static const qreal textMargin;
58 QPainterPath commentFrame;
59 QGraphicsTextItem *textItem;
61 bool resizeDragInProgress;
62 QPointF resizeDeltaIgnored;
63 bool dragHandleHovered;
64 bool titleHandleHovered;
68 void updateFrameRect(
void);
69 QPainterPath getCommentFrame(QRectF frameRect)
const;
70 QPainterPath getTitleHandlePath(QRectF frameRect)
const;
71 QPainterPath getDragHandlePath(QRectF frameRect)
const;
72 QRectF extendedTitleHandleBoundingRect(
void)
const;
73 QRectF extendedDragHandleBoundingRect(
void)
const;
75 bool titleHandleActiveForEventPos(QPointF pos);
76 bool titleHandleHoveredForEventPos(QPointF pos);
77 bool dragHandleHoveredForEventPos(QPointF pos);
79 void updateFormattedCommentText();
80 QString generateTextStyleString();
83 void drawTextContent(QPainter *painter)
const;