X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=zouba%2Fsrc%2Fuicontroller.cpp;h=503c4498faec6983866e4456c533da503902ce87;hb=f2cb883cd4d19afcbaf9591adda87b365a1bf913;hp=a5440a387ec33511d2275cd66771d15ab5912c8e;hpb=e8ccc57ce5be0a4b725468d27f15f8853542190b;p=ptas diff --git a/zouba/src/uicontroller.cpp b/zouba/src/uicontroller.cpp index a5440a3..503c449 100644 --- a/zouba/src/uicontroller.cpp +++ b/zouba/src/uicontroller.cpp @@ -93,8 +93,6 @@ void UiController::setButtonValid( int id ) void UiController::changeDestination( int id ) { - qDebug() << "Destination button "+QString::number(id)+" clicked"; - bool destinationHasChanged = ( m_currentDestination != id ); qDebug() << "Destination has changed=" << destinationHasChanged; if ( destinationHasChanged ) { @@ -109,8 +107,6 @@ void UiController::changeDestination( int id ) void UiController::changeRoute( int id ) { - qDebug() << "Route button "+QString::number(id)+" clicked"; - bool routeHasChanged = ( m_currentRoute != id ); if ( routeHasChanged ) { displayRouteDetail( id ); @@ -127,15 +123,20 @@ void UiController::displayRouteDetail( int 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 ) {