void UiController::changeDestination( int id )
{
- qDebug() << "Destination button "+QString::number(id)+" clicked";
-
bool destinationHasChanged = ( m_currentDestination != id );
qDebug() << "Destination has changed=" << destinationHasChanged;
if ( destinationHasChanged ) {
void UiController::changeRoute( int id )
{
- qDebug() << "Route button "+QString::number(id)+" clicked";
-
bool routeHasChanged = ( m_currentRoute != id );
if ( routeHasChanged ) {
displayRouteDetail( id );
int row=0;
foreach( LegData thisLegData, legDataList ) {
+ QString thisHow = thisLegData.m_how;
+
+ bool thisIsLine = ( thisHow == "LINE" );
+ if ( thisIsLine ) {
+ thisHow = thisLegData.m_lineCode;
+ }
QStringList tableStrings;
tableStrings
- << thisLegData.m_how
+ << thisHow
<< thisLegData.m_tripTime
<< thisLegData.m_tripDistance
<< thisLegData.m_departureTime
- << thisLegData.m_arrivalTime
- << thisLegData.m_lineCode;
+ << thisLegData.m_arrivalTime;
int col=0;
foreach( QString thisString, tableStrings ) {