X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=94f3fb74097ad5a6e2626455645f78696af515be;hb=6d55e659fa87565462d7f3e92da594fdcf9708a2;hp=0c3d4bbe33eca122cc3241dc24722803da8fbdfc;hpb=22128f214112de5e4f3111e0a90f7d5d99e82dac;p=quassel.git diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 0c3d4bbe..94f3fb74 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -58,6 +58,7 @@ void ChatView::init(MessageFilter *filter) { connect(_scene, SIGNAL(sceneRectChanged(const QRectF &)), this, SLOT(sceneRectChanged(const QRectF &))); connect(_scene, SIGNAL(lastLineChanged(QGraphicsItem *, qreal)), this, SLOT(lastLineChanged(QGraphicsItem *, qreal))); setScene(_scene); + // installEventFilter(_scene); connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(verticalScrollbarChanged(int))); } @@ -68,9 +69,9 @@ void ChatView::resizeEvent(QResizeEvent *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. + // FIXME: without the hardcoded -4 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()); + scene()->updateForViewport(viewport()->width() - 4, viewport()->height()); _lastScrollbarPos = verticalScrollBar()->maximum(); verticalScrollBar()->setValue(verticalScrollBar()->maximum());