From: Manuel Nickschas Date: Sun, 31 Aug 2008 12:46:25 +0000 (+0200) Subject: Bring back the workaround to not reserve space for the non-existing horizontal scroll... X-Git-Tag: 0.3.1~311 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e2689c4568c0dcd83f74c1095623cb3fa702204f Bring back the workaround to not reserve space for the non-existing horizontal scrollbar in ChatView -_- --- diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index ff0460aa..ce79b65d 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -59,9 +59,8 @@ void ChatView::init(MessageFilter *filter) { } 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); - 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()); }