Quassel now handles even huge ChatScenes without slowing to a crawl.
[quassel.git] / src / qtui / chatscene.h
index 8122872..a0bcefc 100644 (file)
@@ -44,12 +44,16 @@ class ChatScene : public QGraphicsScene {
   public slots:
     void setWidth(int);
 
-  protected slots:
+  signals:
+    void heightChanged(int height);
 
+  protected slots:
+    void rowsInserted(const QModelIndex &, int, int);
     void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
 
   private:
-    int _width;
+    int _width, _height;
+    int _timestampWidth, _senderWidth;
     MessageModel *_model;
     QList<ChatLine *> _lines;