X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fcolumnhandleitem.cpp;h=978e6a094333567ecc0b69038ffbbc15d6b999b3;hb=f9efdde7f3a6004af8f834c409cfa6ae1d877692;hp=676ce94856bd6c49c61a2870e4c7c3d90ce15d42;hpb=4a5065255e652dd0c301bac0db41b7afb777ef49;p=quassel.git diff --git a/src/qtui/columnhandleitem.cpp b/src/qtui/columnhandleitem.cpp index 676ce948..978e6a09 100644 --- a/src/qtui/columnhandleitem.cpp +++ b/src/qtui/columnhandleitem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -38,7 +38,7 @@ ColumnHandleItem::ColumnHandleItem(qreal w, QGraphicsItem *parent) _opacity(0), _animation(new QPropertyAnimation(this, "opacity", this)) { - setAcceptsHoverEvents(true); + setAcceptHoverEvents(true); setZValue(10); setCursor(QCursor(Qt::OpenHandCursor)); @@ -47,8 +47,6 @@ ColumnHandleItem::ColumnHandleItem(qreal w, QGraphicsItem *parent) _animation->setDirection(QPropertyAnimation::Forward); _animation->setDuration(350); _animation->setEasingCurve(QEasingCurve::InOutSine); - - //connect(&_timeLine, SIGNAL(valueChanged(qreal)), this, SLOT(hoverChanged(qreal))); } @@ -58,6 +56,7 @@ void ColumnHandleItem::setXPos(qreal xpos) QRectF sceneBRect = _boundingRect.translated(x(), 0); _sceneLeft = sceneBRect.left(); _sceneRight = sceneBRect.right(); + emit positionChanged(xpos); }