1
Index: quassel-0.3.0/src/qtui/chatview.cpp
2
===================================================================
3
--- quassel-0.3.0.orig/src/qtui/chatview.cpp 2008-09-01 15:00:38.707838950 +0200
4
+++ quassel-0.3.0/src/qtui/chatview.cpp 2008-09-01 15:00:56.742362245 +0200
6
setAlignment(Qt::AlignBottom);
9
- _scene = new ChatScene(filter, filter->idString(), viewport()->width(), this);
10
+ _scene = new ChatScene(filter, filter->idString(), viewport()->width() - 2, this); // see below: resizeEvent()
11
connect(_scene, SIGNAL(sceneHeightChanged(qreal)), this, SLOT(sceneHeightChanged(qreal)));
17
void ChatView::resizeEvent(QResizeEvent *event) {
18
-// scene()->setWidth(event->size().width() - 2); // FIXME figure out why we have to hardcode the -2 here
19
QGraphicsView::resizeEvent(event);
20
- scene()->setWidth(viewport()->width());
21
+ scene()->setWidth(viewport()->width() - 2); // FIXME figure out why we have to hardcode the -2 here -> Qt-Bug most probably
22
verticalScrollBar()->setValue(verticalScrollBar()->maximum());