#include "chatview.h"
#include "quasselui.h"
-ChatView::ChatView(Buffer *buf, QWidget *parent) : QGraphicsView(parent) {
+ChatView::ChatView(Buffer *buf, QWidget *parent) : QGraphicsView(parent), AbstractChatView() {
_scene = new ChatScene(buf, this);
setScene(_scene);
- QGraphicsTextItem *item = scene()->addText(buf->name());
+ QGraphicsTextItem *item = scene()->addText(buf->bufferInfo().bufferName());
}
return _scene;
}
-/*
+
void ChatView::clear()
{
}
}
void ChatView::prependChatLine(ChatLine *line) {
- qDebug() << "prepending";
+ //qDebug() << "prepending";
}
void ChatView::prependChatLines(QList<ChatLine *> clist) {
}
void ChatView::appendChatLine(ChatLine *line) {
- qDebug() << "appending";
+ //qDebug() << "appending";
}
}
}
-void ChatView::setContents(QList<ChatLine *> list) {
+void ChatView::setContents(const QList<AbstractUiMsg *> &list) {
qDebug() << "setting" << list.count();
- appendChatLines(list);
+ //appendChatLines(list);
}
-*/
+