Routing panel reviewed.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 16 Aug 2010 12:45:52 +0000 (15:45 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 16 Aug 2010 12:45:52 +0000 (15:45 +0300)
Reviewed by: Katri Kaikkonen

src/ui/routewaypointlistitem.cpp
src/ui/routingpanel.cpp

index 10ca7c4..7c46a37 100644 (file)
@@ -36,7 +36,7 @@ void RouteWaypointListItem::setRouteWaypointData(const RouteSegment &routeSegmen
 
     clearSubItems();
 
-    QTime zeroTime(0, 0);
+    QTime zeroTime;
     QTime segmentTravelTime = zeroTime.addSecs(routeSegment.time());
     addSubItem(segmentTravelTime.toString("hh:mm:ss"), QPixmap(":/res/images/clock.png"));
 
@@ -72,9 +72,10 @@ void RouteWaypointListItem::setTurnTypeImage(const QString &turnType)
     } else if (turnType.startsWith("EXIT")) {
         setImage(AvatarImage::create(QPixmap(":/res/images/arrow_turn_roundabout.png"),
                                      AvatarImage::Small));
-    } else
+    } else {
         setImage(AvatarImage::create(QPixmap(":/res/images/arrow_turn_start.png"),
                                      AvatarImage::Small));
+    }
 
 }
 
index 7289978..eca995f 100644 (file)
@@ -120,6 +120,8 @@ void RoutingPanel::setRoute(Route &route)
 {
     qDebug() << __PRETTY_FUNCTION__;
 
+    m_routeButton->hide();
+
     m_locationListHeaderWidget->hide();
     m_locationListView->hide();
     m_routeWaypointListView->show();