X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=53fa024bf8e420053b6ea05c11accd1b5a4a0952;hp=536a5111167499a94ca4deafb4fe39a3501f573c;hb=229b87f259ab1bc2c65f481eb39c25a872080fe7;hpb=3271ab1dff7df6f6464cb714d675291aae791639 diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 536a5111..53fa024b 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -61,7 +61,7 @@ void ChatView::init(MessageFilter *filter) { _scrollTimer.setSingleShot(true); connect(&_scrollTimer, SIGNAL(timeout()), SLOT(scrollTimerTimeout())); - _scene = new ChatScene(filter, filter->idString(), viewport()->width() - 2, this); // see below: resizeEvent() + _scene = new ChatScene(filter, filter->idString(), viewport()->width() - 4, this); // see below: resizeEvent() connect(_scene, SIGNAL(sceneRectChanged(const QRectF &)), this, SLOT(sceneRectChanged(const QRectF &))); connect(_scene, SIGNAL(lastLineChanged(QGraphicsItem *, qreal)), this, SLOT(lastLineChanged(QGraphicsItem *, qreal))); connect(_scene, SIGNAL(mouseMoveWhileSelecting(const QPointF &)), this, SLOT(mouseMoveWhileSelecting(const QPointF &))); @@ -108,8 +108,9 @@ void ChatView::scrollTimerTimeout() { void ChatView::lastLineChanged(QGraphicsItem *chatLine, qreal offset) { Q_UNUSED(chatLine) - if(!scene()->isScrollingAllowed()) - return; + // disabled until further testing/discussion + //if(!scene()->isScrollingAllowed()) + // return; QAbstractSlider *vbar = verticalScrollBar(); Q_ASSERT(vbar);