+public:
+ ChatLine(int row, QAbstractItemModel *model,
+ const qreal &width,
+ const qreal ×tampWidth, const qreal &senderWidth, const qreal &contentsWidth,
+ const QPointF &senderPos, const QPointF &contentsPos,
+ QGraphicsItem *parent = 0);
+
+ virtual inline QRectF boundingRect () const { return QRectF(0, 0, _width, _height); }
+
+ inline int row() { return _row; }
+ inline void setRow(int row) { _row = row; }
+
+ inline const QAbstractItemModel *model() const { return _model; }
+ inline ChatScene *chatScene() const { return qobject_cast<ChatScene *>(scene()); }