X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=85a1787dd8f5422fcb746052218662214e80d94e;hp=dc2d5607e46f9e2dfd63209198b92026a82d56d4;hb=1817c8c8e2437d8aadcc1f07195fa4555cb1c17c;hpb=32b5e6447458a8e6e8074c40988b2d06f327094f diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index dc2d5607..85a1787d 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -23,16 +23,16 @@ #include "buffer.h" #include "chatitem.h" -#include "chatline.h" +#include "chatlinemodelitem.h" #include "chatscene.h" #include "quasselui.h" ChatScene::ChatScene(MessageModel *model, QObject *parent) : QGraphicsScene(parent), _model(model) { connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)), this, SLOT(rowsInserted(const QModelIndex &, int, int))); for(int i = 0; i < model->rowCount(); i++) { - ChatItem *item = new ChatItem(QPersistentModelIndex(model->index(i, 2))); - addItem(item); - item->setPos(30, i*item->boundingRect().height()); + ChatLine *line = new ChatLine(model->index(i, 0)); + addItem(line); + line->setPos(30, i*line->boundingRect().height()); }