- //connect(&_timeLine, SIGNAL(valueChanged(qreal)), this, SLOT(hoverChanged(qreal)));
+ColumnHandleItem::ColumnHandleItem(qreal w, QGraphicsItem* parent)
+ : QGraphicsObject(parent)
+ , _width(w)
+ , _boundingRect(-_width / 2, 0, _width, 0)
+ , _moving(false)
+ , _offset(0)
+ , _minXPos(0)
+ , _maxXPos(0)
+ , _opacity(0)
+ , _animation(new QPropertyAnimation(this, "opacity", this))
+{
+ setAcceptHoverEvents(true);
+ setZValue(10);
+ setCursor(QCursor(Qt::OpenHandCursor));
+
+ _animation->setStartValue(0);
+ _animation->setEndValue(1);
+ _animation->setDirection(QPropertyAnimation::Forward);
+ _animation->setDuration(350);
+ _animation->setEasingCurve(QEasingCurve::InOutSine);