inline MessageModel *model() const { return _model; }
public slots:
+ void setWidth(int);
protected slots:
-
+ void rowsInserted(const QModelIndex &, int, int);
void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
private:
- //Buffer *_buffer;
- //QList<ChatLine*> _lines;
+ int _width, _height;
+ int _timestampWidth, _senderWidth;
MessageModel *_model;
- QList<ChatItem *> _items;
+ QList<ChatLine *> _lines;
};