Handle rowsInserted() and add new messages to the scene.
[quassel.git] / src / qtui / chatscene.h
index 1ce9304..fd72010 100644 (file)
@@ -42,16 +42,17 @@ class ChatScene : public QGraphicsScene {
     inline MessageModel *model() const { return _model; }
 
   public slots:
+    void setWidth(int);
 
   protected slots:
-
+    void rowsInserted(const QModelIndex &, int, int);
     void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
 
   private:
-    //Buffer *_buffer;
-    //QList<ChatLine*> _lines;
+    int _width, _height;
+    int _timestampWidth, _senderWidth;
     MessageModel *_model;
-    QList<ChatItem *> _items;
+    QList<ChatLine *> _lines;
 
 };