Added a toggle button, and fields to set home and work addresses.
[ptas] / zouba / route.cpp
index 331ae54..5356702 100644 (file)
@@ -92,3 +92,11 @@ const Location &Route::toLocation()
   return q->toLocation();
 }
 
+void Route::toggleDirection()
+{
+  Location oldFromLocation = fromLocation();
+  setFromLocation( toLocation() );
+  setToLocation( oldFromLocation );
+
+  getRoute();
+}