ControlTool::FollowMode ControlPainter::handleMouseMove(const ControlMouseEvent *e) { ControllerEventsRuler* ruler = dynamic_cast <ControllerEventsRuler*>(m_ruler); if (ruler) { if (e->modifiers & Qt::ShiftModifier) { if (m_controlLineOrigin.first != -1 && m_controlLineOrigin.second != -1) { ruler->drawRubberBand(m_controlLineOrigin.first, m_controlLineOrigin.second, e->x, e->y); } } else { ruler->stopRubberBand(); } } // not sure what any of this is about; had to match the return type used // elsewhere, and have made no investigation into what any of it means return ControlTool::NoFollow; }