- _scene = new ChatScene(filter, filter->idString(), this);
- connect(_scene, SIGNAL(heightChangedAt(qreal, qreal)), this, SLOT(sceneHeightChangedAt(qreal, qreal)));
+ _scrollTimer.setInterval(100);
+ _scrollTimer.setSingleShot(true);
+ connect(&_scrollTimer, SIGNAL(timeout()), SLOT(scrollTimerTimeout()));
+
+ _resizeTimer.setInterval(100);
+ _resizeTimer.setSingleShot(true);
+ connect(&_resizeTimer, SIGNAL(timeout()), SLOT(resizeTimerTimeout()));
+
+ _scene = new ChatScene(filter, filter->idString(), viewport()->width() - 4, this); // see below: resizeEvent()
+ connect(_scene, SIGNAL(sceneRectChanged(const QRectF &)), this, SLOT(sceneRectChanged(const QRectF &)));
+ connect(_scene, SIGNAL(lastLineChanged(QGraphicsItem *, qreal)), this, SLOT(lastLineChanged(QGraphicsItem *, qreal)));
+ connect(_scene, SIGNAL(mouseMoveWhileSelecting(const QPointF &)), this, SLOT(mouseMoveWhileSelecting(const QPointF &)));