X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=f111781ba3aac5ddce10d7ca1f29cfd4b4864a37;hp=af502819a8d06be20af1b8ba4069d6ab9821d586;hb=530908dad5e50d43081c91a9e256a5daafcdce34;hpb=ad1565e214bd8f51798d378ec82f4cdf094bd122 diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index af502819..f111781b 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -170,7 +170,6 @@ void ChatScene::rowsInserted(const QModelIndex &index, int start, int end) { qreal width = _sceneRect.width(); bool atBottom = (start == _lines.count()); bool atTop = !atBottom && (start == 0); - bool moveTop = false; if(start < _lines.count()) { y = _lines.value(start)->y(); @@ -844,7 +843,6 @@ void ChatScene::updateSceneRect(qreal width) { ChatLine *firstLine = _lines.at(_firstLineRow); ChatLine *lastLine = _lines.last(); updateSceneRect(QRectF(0, firstLine->pos().y(), width, lastLine->pos().y() + lastLine->height() - firstLine->pos().y())); - qDebug() << idString() << "top:" << sceneRect().y() << "height:" << sceneRect().height(); } else { // empty scene rect updateSceneRect(QRectF(0, 0, width, 0));