faster ChatLine insertion into the ChatScene. And some minor improvements
[quassel.git] / src / qtui / columnhandleitem.h
index 43ecb47..c96c687 100644 (file)
@@ -33,14 +33,16 @@ class ColumnHandleItem : public QObject, public QGraphicsItem {
     ColumnHandleItem(qreal width, QGraphicsItem *parent = 0);
 
     inline qreal width() const { return _width; }
-    inline QRectF boundingRect() const { return QRectF(-_width/2, 0, _width, scene()->height()); }
+    inline QRectF boundingRect() const { return QRectF(-_width/2, scene()->sceneRect().y(), _width, scene()->height()); }
     void setXPos(qreal xpos);
 
     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
 
-    void sceneRectChanged(const QRectF &);
     void setXLimits(qreal min, qreal max);
 
+  public slots:
+    void sceneRectChanged(const QRectF &);
+
   protected:
     void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
     void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);