X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=f0daee0473ec5564c8726ff54d74c0a44fbdce4e;hp=22150dddd382087082d883eb0c766e057eecda2c;hb=8c171717381424c896b9f720db203ddb815c76e1;hpb=2e023191fb47f5cbd186f7274f8ee1b5d1cc94c3;ds=inline diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 22150ddd..f0daee04 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -65,9 +65,13 @@ void ChatView::init(MessageFilter *filter) { void ChatView::resizeEvent(QResizeEvent *event) { QGraphicsView::resizeEvent(event); + // we can reduce viewport updates if we scroll to the bottom allready at the beginning + verticalScrollBar()->setValue(verticalScrollBar()->maximum()); + // FIXME: without the hardcoded -2 Qt reserves space for a horizontal scrollbar even though it's disabled permanently. // this does only occur on QtX11 (at least not on Qt for Mac OS). Seems like a Qt Bug. scene()->updateForViewport(viewport()->width() - 2, viewport()->height()); + _lastScrollbarPos = verticalScrollBar()->maximum(); verticalScrollBar()->setValue(verticalScrollBar()->maximum()); }