X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=85a1787dd8f5422fcb746052218662214e80d94e;hp=a78c2ba8de2859082babee03bd99c7fc96862ac0;hb=1817c8c8e2437d8aadcc1f07195fa4555cb1c17c;hpb=aefcf3c3799a9deb286723eccc124760ce4d898d diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index a78c2ba8..85a1787d 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -30,9 +30,9 @@ 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()); }