projects
/
ptas
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a toggle button, and fields to set home and work addresses.
[ptas]
/
zouba
/
route.cpp
diff --git
a/zouba/route.cpp
b/zouba/route.cpp
index
331ae54
..
5356702
100644
(file)
--- a/
zouba/route.cpp
+++ b/
zouba/route.cpp
@@
-92,3
+92,11
@@
const Location &Route::toLocation()
return q->toLocation();
}
return q->toLocation();
}
+void Route::toggleDirection()
+{
+ Location oldFromLocation = fromLocation();
+ setFromLocation( toLocation() );
+ setToLocation( oldFromLocation );
+
+ getRoute();
+}