inline bool containsBuffer(const BufferId &id) const;
inline ChatLine *chatLine(int row) { return (row < _lines.count()) ? _lines[row] : 0; }
inline bool containsBuffer(const BufferId &id) const;
inline ChatLine *chatLine(int row) { return (row < _lines.count()) ? _lines[row] : 0; }
- inline ColumnHandleItem *firstColumnHandle() const { return firstColHandle; }
- inline ColumnHandleItem *secondColumnHandle() const { return secondColHandle; }
+ inline ColumnHandleItem *firstColumnHandle() const { return _firstColHandle; }
+ inline ColumnHandleItem *secondColumnHandle() const { return _secondColHandle; }
void setWidth(qreal, bool forceReposition = false);
// these are used by the chatitems to notify the scene and manage selections
void setWidth(qreal, bool forceReposition = false);
// these are used by the chatitems to notify the scene and manage selections
protected:
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
virtual void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
protected:
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
virtual void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
// calls to QChatScene::sceneRect() are very expensive. As we manage the scenerect ourselves
// we store the size in a member variable.
QRectF _sceneRect;
// calls to QChatScene::sceneRect() are very expensive. As we manage the scenerect ourselves
// we store the size in a member variable.
QRectF _sceneRect;
- ColumnHandleItem *firstColHandle, *secondColHandle;
- qreal firstColHandlePos, secondColHandlePos;
+ ColumnHandleItem *_firstColHandle, *_secondColHandle;
+ qreal _firstColHandlePos, _secondColHandlePos;
ChatItem *_selectingItem;
int _selectionStartCol, _selectionMinCol;
ChatItem *_selectingItem;
int _selectionStartCol, _selectionMinCol;