X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=f111781ba3aac5ddce10d7ca1f29cfd4b4864a37;hb=4ade49283531f104f6340cf0bce956a93d9975e3;hp=af502819a8d06be20af1b8ba4069d6ab9821d586;hpb=784a9121b9e314c017f0c035cdcd5035f02b6db5;p=quassel.git 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));