#include "locationlistitem.h"
#include "locationlistview.h"
#include "extendedlistitemdelegate.h"
+#include "imagebutton.h"
#include "routing/location.h"
#include "routing/route.h"
#include "routewaypointlistview.h"
#include "routingpanel.h"
RoutingPanel::RoutingPanel(QWidget *parent)
- : QWidget(parent)
+ : PanelBase(parent)
{
qDebug() << __PRETTY_FUNCTION__;
QVBoxLayout *listViewLayout = new QVBoxLayout;
listViewLayout->setContentsMargins(PANEL_MARGIN_LEFT, 0, PANEL_MARGIN_RIGHT, 0);
- 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->hide();
listViewLayout->addWidget(m_locationListView);
listViewLayout->addWidget(m_routeWaypointListView);
- routingLayout->addWidget(m_searchLocationButton);
routingLayout->addWidget(m_routeButton);
routingLayout->addWidget(m_locationListHeaderWidget);
routingLayout->addLayout(listViewLayout);
connect(m_routeWaypointListView, SIGNAL(routeWaypointItemClicked(GeoCoordinate)),
this, SIGNAL(routeWaypointItemClicked(GeoCoordinate)));
- connect(m_searchLocationButton, SIGNAL(clicked()),
+ connect(searchLocationButton, SIGNAL(clicked()),
this, SIGNAL(requestSearchLocation()));
}