SPUTDEV compiles again, and the MessageModel now actually is filled with messages...
[quassel.git] / src / qtui / chatview.cpp
index f9bc175..db93f07 100644 (file)
@@ -26,7 +26,7 @@
 #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);
 
@@ -50,9 +50,9 @@ void ChatView::clear()
 }
 
 void ChatView::prependMsg(AbstractUiMsg *msg) {
-  ChatLine *line = dynamic_cast<ChatLine*>(msg);
-  Q_ASSERT(line);
-  prependChatLine(line);
+  //ChatLine *line = dynamic_cast<ChatLine*>(msg);
+  //Q_ASSERT(line);
+  //prependChatLine(line);
 }
 
 void ChatView::prependChatLine(ChatLine *line) {
@@ -64,9 +64,9 @@ void ChatView::prependChatLines(QList<ChatLine *> clist) {
 }
 
 void ChatView::appendMsg(AbstractUiMsg *msg) {
-  ChatLine *line = dynamic_cast<ChatLine*>(msg);
-  Q_ASSERT(line);
-  appendChatLine(line);
+  //ChatLine *line = dynamic_cast<ChatLine*>(msg);
+  //Q_ASSERT(line);
+  //appendChatLine(line);
 }
 
 void ChatView::appendChatLine(ChatLine *line) {
@@ -75,13 +75,13 @@ void ChatView::appendChatLine(ChatLine *line) {
 
 
 void ChatView::appendChatLines(QList<ChatLine *> list) {
-  foreach(ChatLine *line, list) {
+  //foreach(ChatLine *line, list) {
     
-  }
+  //}
 }
 
-void ChatView::setContents(QList<ChatLine *> list) {
+void ChatView::setContents(const QList<AbstractUiMsg *> &list) {
   qDebug() << "setting" << list.count();
-  appendChatLines(list);
+  //appendChatLines(list);
 }