QML: Modified totalDistance