Bring back the workaround to not reserve space for the non-existing horizontal scroll...
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 31 Aug 2008 12:46:25 +0000 (14:46 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 31 Aug 2008 12:46:25 +0000 (14:46 +0200)
src/qtui/chatview.cpp

index ff0460a..ce79b65 100644 (file)
@@ -59,9 +59,8 @@ void ChatView::init(MessageFilter *filter) {
 }
 
 void ChatView::resizeEvent(QResizeEvent *event) {
 }
 
 void ChatView::resizeEvent(QResizeEvent *event) {
-//   scene()->setWidth(event->size().width() - 2);  // FIXME figure out why we have to hardcode the -2 here
   QGraphicsView::resizeEvent(event);
   QGraphicsView::resizeEvent(event);
-  scene()->setWidth(viewport()->width());
+  scene()->setWidth(viewport()->width() - 2);  // FIXME figure out why we have to hardcode the -2 here -> Qt-Bug most probably
   verticalScrollBar()->setValue(verticalScrollBar()->maximum());
 }
 
   verticalScrollBar()->setValue(verticalScrollBar()->maximum());
 }