summaryrefslogtreecommitdiff
path: root/gui/qml/navitProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/qml/navitProxy.h')
-rw-r--r--gui/qml/navitProxy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/qml/navitProxy.h b/gui/qml/navitProxy.h
index e9f77f37..935264bc 100644
--- a/gui/qml/navitProxy.h
+++ b/gui/qml/navitProxy.h
@@ -119,6 +119,9 @@ public slots:
void setCenter() {
navit_set_center(this->object->nav,this->object->currentPoint->pc(),1);
}
+ void zoomToRoute() {
+ navit_zoom_to_route(this->object->nav,-1);
+ }
protected:
int getAttrFunc(enum attr_type type, struct attr* attr, struct attr_iter* iter) { return navit_get_attr(this->object->nav, type, attr, iter); }
int setAttrFunc(struct attr* attr) {return navit_set_attr(this->object->nav,attr); }