+ if(_moving) {
+ _moving = false;
+ setCursor(QCursor(Qt::OpenHandCursor));
+ QRectF sceneBRect = _boundingRect.translated(x(), 0);
+ _sceneLeft = sceneBRect.left();
+ _sceneRight = sceneBRect.right();
+ emit positionChanged(x());
+ event->accept();
+ } else {
+ event->ignore();
+ }
+}
+
+void ColumnHandleItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) {
+ Q_UNUSED(event);
+
+ _timeLine.setDirection(QTimeLine::Forward);
+ if(_timeLine.state() != QTimeLine::Running)
+ _timeLine.start();
+}
+
+void ColumnHandleItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) {
+ Q_UNUSED(event);
+
+ _timeLine.setDirection(QTimeLine::Backward);
+ if(_timeLine.state() != QTimeLine::Running)
+ _timeLine.start();
+}
+
+void ColumnHandleItem::hoverChanged(qreal value) {
+ _hover = value;
+ update();