Added scrollToTop call to RoutingPanel lists when list is populated.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 16 Aug 2010 13:13:44 +0000 (16:13 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 16 Aug 2010 13:13:44 +0000 (16:13 +0300)
src/ui/routingpanel.cpp

index eca995f..089a917 100644 (file)
@@ -103,6 +103,8 @@ void RoutingPanel::populateLocationListView(const QList<Location> &locations)
         if (item)
             m_locationListView->setSelectedItem(item);
     }
+
+    m_locationListView->scrollToTop();
 }
 
 void RoutingPanel::routeToSelectedLocation()
@@ -138,4 +140,6 @@ void RoutingPanel::setRoute(Route &route)
 
         m_routeWaypointListView->addListItem(QString::number(i), item);
     }
+
+    m_routeWaypointListView->scrollToTop();
 }