View Single Post
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#222
Did some experiments with loading the trafficDetailsPage. Calling the page was done by:
Code:
windows.push("trafficDetailsPage.qml")'
Also, need to make "TrafficEventHeader" visible by adding the following line in components/qmldir
Code:
TrafficEventHeader 1.0 TrafficEventHeader.qml

For testing, I put this into the onMenuButtonClicked() signal in guidancePage.Dashboard. The traffic detail page (tdPage) did show up, but there were no information available. Taking a deeper look at tdPage, it seemed to me that a traffic event in the trafficModel needs to be selected first in order for tdPage to load the info. Unfortunately, I didn't find anywhere in the source code for selecting the traffic event.

EDIT:
Also, the object 'TrafficViewHelper' used in tdPage doesn't have associated qml file.

So this feature will take more efforts if someone ever tries to make it work.

Last edited by sony123; 2012-07-22 at 08:59.
 

The Following 2 Users Say Thank You to sony123 For This Useful Post: