Handle selections properly on insertion and removal of ChatLines
[quassel.git] / src / qtui / chatscene.h
index af453bf..78ba341 100644 (file)
@@ -62,7 +62,9 @@ public:
   inline CutoffMode senderCutoffMode() const { return _cutoffMode; }
   inline void setSenderCutoffMode(CutoffMode mode) { _cutoffMode = mode; }
 
-public slots:
+  virtual bool event(QEvent *e);
+
+ public slots:
   void updateForViewport(qreal width, qreal height);
   void setWidth(qreal width);
 
@@ -122,7 +124,7 @@ private:
   int _selectionStartCol, _selectionMinCol;
   int _selectionStart;
   int _selectionEnd;
-  int _firstSelectionRow, _lastSelectionRow;
+  int _firstSelectionRow;
   bool _isSelecting;
 
   struct WebPreview {