setLayout(routingLayout);
QHBoxLayout *headerLayout = new QHBoxLayout();
- headerLayout->setContentsMargins(PANEL_MARGIN_LEFT, 0,
- PANEL_MARGIN_RIGHT, 0);
+ headerLayout->setContentsMargins(PANEL_MARGIN_LEFT, PANEL_MARGIN_TOP,
+ PANEL_MARGIN_RIGHT, PANEL_MARGIN_BOTTOM);
QVBoxLayout *listViewLayout = new QVBoxLayout;
- listViewLayout->setContentsMargins(PANEL_MARGIN_LEFT, 0, PANEL_MARGIN_RIGHT, 0);
+ listViewLayout->setContentsMargins(PANEL_MARGIN_LEFT, PANEL_MARGIN_TOP,
+ PANEL_MARGIN_RIGHT, PANEL_MARGIN_BOTTOM);
- m_searchLocationButton = new QPushButton(tr("Search location"));
+ ImageButton *searchLocationButton = new ImageButton(0, ":/res/images/search.png",
+ ":/res/images/search_s.png");
+
+ m_contextButtonList.append(searchLocationButton);
m_routeButton = new QPushButton(tr("Route to location"));
+ m_routeButton->setDisabled(true);
m_routeButton->hide();
m_locationListHeaderWidget = new QWidget();
connect(m_routeWaypointListView, SIGNAL(routeWaypointItemClicked(GeoCoordinate)),
this, SIGNAL(routeWaypointItemClicked(GeoCoordinate)));
+ connect(m_routeButton, SIGNAL(clicked()),
+ this, SLOT(routeToSelectedLocation()));
+
- connect(m_searchLocationButton, SIGNAL(clicked()),
+ connect(searchLocationButton, SIGNAL(clicked()),
this, SIGNAL(requestSearchLocation()));
}