Try to make the QTBUG-6322 workaround work in more cases
[quassel.git] / src / qtui / chatview.h
index 5969f72..4e88d95 100644 (file)
@@ -61,13 +61,14 @@ protected:
   virtual void resizeEvent(QResizeEvent *event);
 
 protected slots:
-  virtual inline void sceneRectChanged(const QRectF &rect) { setSceneRect(rect); }
   virtual void verticalScrollbarChanged(int);
 
 private slots:
   void lastLineChanged(QGraphicsItem *chatLine, qreal offset);
+  void adjustSceneRect();
   void mouseMoveWhileSelecting(const QPointF &scenePos);
   void scrollTimerTimeout();
+  void invalidateFilter();
 
 private:
   void init(MessageFilter *filter);
@@ -78,6 +79,11 @@ private:
   qreal _currentScaleFactor;
   QTimer _scrollTimer;
   int _scrollOffset;
+  bool _invalidateFilter;
+
+  // workaround for QTBUG-6322
+  qreal _verticalOffset;
+  bool _verticalOffsetStable;
 };