connect(&webPreview.delayTimer, SIGNAL(timeout()), this, SLOT(showWebPreview()));
// installEventFilter(this);
- // setItemIndexMethod(QGraphicsScene::NoIndex);
+ setItemIndexMethod(QGraphicsScene::NoIndex);
}
ChatScene::~ChatScene() {
}
}
+ // check if all went right
+ Q_ASSERT(start == 0 || _lines.at(start - 1)->pos().y() + _lines.at(start - 1)->height() == _lines.at(start)->pos().y());
+ Q_ASSERT(end + 1 == _lines.count() || _lines.at(end)->pos().y() + _lines.at(end)->height() == _lines.at(end + 1)->pos().y());
+
if(!atBottom) {
if(start < _firstLineRow) {
int prevFirstLineRow = _firstLineRow + (end - start + 1);