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;
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()));
qDebug() << __PRETTY_FUNCTION__;
m_locationListView->clearItemSelection();
-
- setRouteButtonDisabled();
}
void LocationSearchPanel::hideEvent(QHideEvent *event)
m_resultsLabel->setText(tr("Search results: %1").arg(count));
}
-
-void LocationSearchPanel::setRouteButtonDisabled()
-{
- qDebug() << __PRETTY_FUNCTION__;
-
- m_routeButton->setDisabled(m_locationListView->selectedItems().isEmpty());
-}