X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=b7b8cf1ee06556bf76e7aa1f9db52230b9abe3e0;hp=d4255556f8c7805f72feb511c8424f90dc7916e5;hb=8bf92d33ac84cfede11b2361832607bea98f64c8;hpb=51d4c8e6eabe0015578a9543e007df5995ea2972 diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index d4255556..b7b8cf1e 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -66,7 +66,7 @@ void ChatScene::rowsInserted(const QModelIndex &index, int start, int end) { for(int i = end+1; i < _lines.count(); i++) { _lines.value(i)->moveBy(0, h); } - setSceneRect(QRectF(0, 0, _width, _height)); + //setSceneRect(0, 0, _width, _height); } } @@ -77,7 +77,8 @@ void ChatScene::setWidth(int w) { line->setPos(0, _height); _height += line->setColumnWidths(_timestampWidth, _senderWidth, w - _timestampWidth - _senderWidth); } - setSceneRect(QRectF(0, 0, _width, _height)); + qDebug() << "setting width"; + setSceneRect(0, 0, _width, _height * 2); } void ChatScene::mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent ) {