_sceneRect(0, 0, width, 0),
_firstLineRow(-1),
_viewportHeight(0),
- _cutoffMode(CutoffLeft),
+ _cutoffMode(CutoffRight),
_selectingItem(0),
_selectionStart(-1),
_isSelecting(false)
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();
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)