#BR127: user can now set the style of the application in the config menu (behaviour...
[quassel.git] / src / qtui / chatview.cpp
index dc337d5..54ca6f9 100644 (file)
 #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());
 
 }
 
@@ -44,7 +44,7 @@ ChatScene *ChatView::scene() const {
   return _scene;
 }
 
-/*
+
 void ChatView::clear()
 {
 }
@@ -56,7 +56,7 @@ void ChatView::prependMsg(AbstractUiMsg *msg) {
 }
 
 void ChatView::prependChatLine(ChatLine *line) {
-  qDebug() << "prepending";
+  //qDebug() << "prepending";
 }
 
 void ChatView::prependChatLines(QList<ChatLine *> clist) {
@@ -70,7 +70,7 @@ void ChatView::appendMsg(AbstractUiMsg *msg) {
 }
 
 void ChatView::appendChatLine(ChatLine *line) {
-  qDebug() << "appending";
+  //qDebug() << "appending";
 }
 
 
@@ -80,8 +80,8 @@ void ChatView::appendChatLines(QList<ChatLine *> list) {
   }
 }
 
-void ChatView::setContents(QList<ChatLine *> list) {
+void ChatView::setContents(const QList<AbstractUiMsg *> &list) {
   qDebug() << "setting" << list.count();
-  appendChatLines(list);
+  //appendChatLines(list);
 }
-*/
+