X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fui%2Flocationsearchpanel.cpp;h=533da07f3b2c64d90479ffc7f5082c8e77f93be2;hb=500ae9fb0a8ac9492fe4cc4f2ef657ac130d2c48;hp=63449a0b2a50f8427ad28ddc71c4f41639fd9c3f;hpb=0f304e63fbd25aa595db0f1a2b5253045c49e0b2;p=situare diff --git a/src/ui/locationsearchpanel.cpp b/src/ui/locationsearchpanel.cpp index 63449a0..533da07 100644 --- a/src/ui/locationsearchpanel.cpp +++ b/src/ui/locationsearchpanel.cpp @@ -107,9 +107,9 @@ LocationSearchPanel::LocationSearchPanel(QWidget *parent) connect(searchLocationButton, SIGNAL(clicked()), this, SIGNAL(requestSearchLocation())); - m_clearLocationListButton = new ImageButton(":/res/images/clear_btn.png", - ":/res/images/clear_btn_s.png", - ":/res/images/clear_btn_d.png", this); + m_clearLocationListButton = new ImageButton(":/res/images/back_btn.png", + ":/res/images/back_btn_s.png", + ":/res/images/back_btn_d.png", this); m_clearLocationListButton->setDisabled(true); connect(m_clearLocationListButton, SIGNAL(clicked()), @@ -190,16 +190,6 @@ void LocationSearchPanel::populateLocationListView(const QList &locati m_locationListView->addListItem(QString::number(i), item); } - const int FIRST_LOCATION_ITEM_INDEX = 0; - const int ONE_LOCATION_ITEM = 1; - - if (locations.size() == ONE_LOCATION_ITEM) { - ListItem *item = m_locationListView->listItemAt(FIRST_LOCATION_ITEM_INDEX); - - if (item) - m_locationListView->setSelectedItem(item); - } - m_locationListView->scrollToTop(); }