X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fcolumnhandleitem.h;h=c96c687d3348961fd02ed59a7ca2ef49be5aaf87;hp=43ecb4756988fdf91cbd8ac3f9c2213ef3e6f08a;hb=70ededc490cb201e52b6d8ca4c2364d4a001b6c4;hpb=e95dcb65efff852c8a05b0ee2bc7a5bf400bcc71 diff --git a/src/qtui/columnhandleitem.h b/src/qtui/columnhandleitem.h index 43ecb475..c96c687d 100644 --- a/src/qtui/columnhandleitem.h +++ b/src/qtui/columnhandleitem.h @@ -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);