- virtual void paint (QPainter * painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+ inline const QAbstractItemModel *model() const { return _model; }
+ inline ChatScene *chatScene() const { return qobject_cast<ChatScene *>(scene()); }
+
+ inline qreal width() const { return _width; }
+ inline qreal height() const { return _height; }
+
+ ChatItem &item(ChatLineModel::ColumnType);
+ inline ChatItem ×tampItem() { return _timestampItem; }
+ inline ChatItem &senderItem() { return _senderItem; }
+ inline ContentsChatItem &contentsItem() { return _contentsItem; }
+
+ virtual void paint (QPainter * painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+ enum { Type = ChatScene::ChatLineType };
+ virtual inline int type() const { return Type; }