-ChatScene::ChatScene(QAbstractItemModel *model, QString idString, qreal width, ChatView *parent)
- : QGraphicsScene(0, 0, width, 0, (QObject *)parent),
- _chatView(parent),
- _idString(std::move(idString)),
- _model(model),
- _singleBufferId(BufferId()),
- _sceneRect(0, 0, width, 0),
- _firstLineRow(-1),
- _viewportHeight(0),
- _markerLine(new MarkerLineItem(width)),
- _markerLineVisible(false),
- _markerLineValid(false),
- _markerLineJumpPending(false),
- _cutoffMode(CutoffRight),
- _alwaysBracketSender(false),
- _selectingItem(nullptr),
- _selectionStart(-1),
- _isSelecting(false),
- _clickMode(NoClick),
- _clickHandled(true),
- _leftButtonPressed(false)
+ChatScene::ChatScene(QAbstractItemModel* model, QString idString, qreal width, ChatView* parent)
+ : QGraphicsScene(0, 0, width, 0, (QObject*)parent)
+ , _chatView(parent)
+ , _idString(std::move(idString))
+ , _model(model)
+ , _singleBufferId(BufferId())
+ , _sceneRect(0, 0, width, 0)
+ , _firstLineRow(-1)
+ , _viewportHeight(0)
+ , _markerLine(new MarkerLineItem(width))
+ , _markerLineVisible(false)
+ , _markerLineValid(false)
+ , _markerLineJumpPending(false)
+ , _cutoffMode(CutoffRight)
+ , _alwaysBracketSender(false)
+ , _selectingItem(nullptr)
+ , _selectionStart(-1)
+ , _isSelecting(false)
+ , _clickMode(NoClick)
+ , _clickHandled(true)
+ , _leftButtonPressed(false)