Make gridSnapOffset return a QPointF not QPoint