X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=1194e82f08665071fc1fcd947097097686419fdc;hp=56f5154822aa61c05cf53688b5b6995a6dada672;hb=167ef57a636052f8e18a206e84c3447552e84d2b;hpb=fb011e52bc6613198a65e037f0752f6361339aeb diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index 56f51548..1194e82f 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -47,10 +47,10 @@ ChatScene::ChatScene(QAbstractItemModel *model, const QString &idString, qreal w _sceneRect(0, 0, width, 0), _firstLineRow(-1), _viewportHeight(0), + _cutoffMode(CutoffRight), _selectingItem(0), _selectionStart(-1), - _isSelecting(false), - _lastBacklogSize(0) + _isSelecting(false) { MessageFilter *filter = qobject_cast(model); if(filter) { @@ -75,6 +75,7 @@ ChatScene::ChatScene(QAbstractItemModel *model, const QString &idString, qreal w addItem(_secondColHandle); _secondColHandle->setXPos(_secondColHandlePos); connect(_secondColHandle, SIGNAL(positionChanged(qreal)), this, SLOT(secondHandlePositionChanged(qreal))); + connect(this, SIGNAL(sceneRectChanged(const QRectF &)), _secondColHandle, SLOT(sceneRectChanged(const QRectF &))); setHandleXLimits(); @@ -581,13 +582,6 @@ void ChatScene::updateSceneRect(const QRectF &rect) { update(); } -void ChatScene::customEvent(QEvent *event) { - switch(event->type()) { - default: - return; - } -} - void ChatScene::loadWebPreview(ChatItem *parentItem, const QString &url, const QRectF &urlRect) { #ifndef HAVE_WEBKIT Q_UNUSED(parentItem)