-ChatView::ChatView(Buffer *buf, QWidget *parent) : QGraphicsView(parent) {
- _scene = new ChatScene(buf, this);
+ChatView::ChatView(Buffer *buf, QWidget *parent) : QGraphicsView(parent), AbstractChatView() {
+ setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ _scene = new ChatScene(Client::messageModel(), this);
+ _scene->setWidth(width());