View Single Post
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#151
Originally Posted by mbanck View Post
Hah, so I dumped the routingModel and guidanceModel structures, and it turns out that guidanceModel apparently has a member which appears to be exactly what we want and gets updated when DestinationDistance changes, namels timeToArrival (we did not find it earlier because it is not referenced in the QML source).

New patch (supersedes the other one): http://paste.debian.net/download/179234

With this patch the duration value updates, however, it is raining outside so I have not tested whether it really works correctly, feedback welcome. It could well be that timeToArrival is broken somewhat and therefore was not exposed in the user interface before.

The user interface has not changed (see last screenshot), I think it would be more elegant to make the distance/duration widget be a button which would switch between the two, but I won't have any more time to work on this, hopefully somebody else can pick it up.
Excellent job, mbanck! How to you dump the structures btw??

For the UI, actually I did modify the InfoDistance.qml so it has states to selectively display distance or TTD info. Basically just make the behaviors consistent with Symbian. I will check your code and see how to do the patching...
 

The Following User Says Thank You to sony123 For This Useful Post: