X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fui%2Flocationsearchpanel.cpp;h=c0d53a861f7f9058440f1e0e580c0cc748549ce4;hb=36f5e82e67e2658f1ae40113ad2362324c4ff485;hp=b765744e135235a054a0eb91a4f91f98d1377047;hpb=7d7b6b85ffa59650e47b7fb6077dce6186386e3e;p=situare diff --git a/src/ui/locationsearchpanel.cpp b/src/ui/locationsearchpanel.cpp index b765744..c0d53a8 100644 --- a/src/ui/locationsearchpanel.cpp +++ b/src/ui/locationsearchpanel.cpp @@ -60,9 +60,6 @@ LocationSearchPanel::LocationSearchPanel(QWidget *parent) SIGNAL(locationItemClicked(const GeoCoordinate&, const GeoCoordinate&))); connect(m_locationListView, SIGNAL(listItemSelectionChanged()), - this, SLOT(setRouteButtonDisabled())); - - connect(m_locationListView, SIGNAL(listItemSelectionChanged()), this, SLOT(onListItemSelectionChanged())); QVBoxLayout *resultsListViewLayout = new QVBoxLayout; @@ -83,8 +80,7 @@ LocationSearchPanel::LocationSearchPanel(QWidget *parent) panelLayout->addLayout(resultsListViewLayout); // --- CONTEXT BUTTONS --- - m_routeButton = new ImageButton(":res/images/compass.png", "", "", this); - m_routeButton->setDisabled(true); + m_routeButton = new ImageButton(":res/images/routing.png", "", "", this); connect(m_routeButton, SIGNAL(clicked()), this, SLOT(routeToSelectedLocation())); @@ -102,8 +98,6 @@ void LocationSearchPanel::clearListsSelections() qDebug() << __PRETTY_FUNCTION__; m_locationListView->clearItemSelection(); - - setRouteButtonDisabled(); } void LocationSearchPanel::hideEvent(QHideEvent *event) @@ -159,10 +153,3 @@ void LocationSearchPanel::setHeaderText(int count) m_resultsLabel->setText(tr("Search results: %1").arg(count)); } - -void LocationSearchPanel::setRouteButtonDisabled() -{ - qDebug() << __PRETTY_FUNCTION__; - - m_routeButton->setDisabled(m_locationListView->selectedItems().isEmpty()); -}