summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-11 15:37:14 +0000
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-04-11 15:37:14 +0000
commitec8c2da11809f98063d3861af3266c8da2253e31 (patch)
tree6a03a40b9b88d2d3845dfe871d03a1b994d15f43
parent80e3e539118231e8f9d59f0a3167d1c519b4359e (diff)
downloadnavit-svn-ec8c2da11809f98063d3861af3266c8da2253e31.tar.gz
Fix:gui/qml:View route implemented via command call now
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/navit@3150 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--gui/qml/navitProxy.h3
-rw-r--r--gui/qml/skins/navit/PageNavigation.qml2
2 files changed, 1 insertions, 4 deletions
diff --git a/gui/qml/navitProxy.h b/gui/qml/navitProxy.h
index 5e2c800d..3f59bd8d 100644
--- a/gui/qml/navitProxy.h
+++ b/gui/qml/navitProxy.h
@@ -114,9 +114,6 @@ 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);
- }
void command(QString command) {
struct attr navit;
navit.type=attr_navit;
diff --git a/gui/qml/skins/navit/PageNavigation.qml b/gui/qml/skins/navit/PageNavigation.qml
index 20331ccc..edcbfec8 100644
--- a/gui/qml/skins/navit/PageNavigation.qml
+++ b/gui/qml/skins/navit/PageNavigation.qml
@@ -31,7 +31,7 @@ Rectangle {
anchors.bottom: parent.verticalCenter; anchors.bottomMargin: gui.height/16;
spacing: gui.width/12
ButtonIcon {
- id: btnRouteview; text: "View route"; icon: "gui_town.svg"; onClicked: { navit.zoomToRoute(), gui.backToMap(); }
+ id: btnRouteview; text: "View route"; icon: "gui_town.svg"; onClicked: { navit.command("zoom_to_route()"), gui.backToMap(); }
}
ButtonIcon {
id: btnRoadbook; text: "Roadbook"; icon: "gui_log.svg"; onClicked: console.log("Implement me!");