#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__;
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);
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_routeButton, SIGNAL(clicked()),
this, SLOT(routeToSelectedLocation()));
- connect(m_searchLocationButton, SIGNAL(clicked()),
+ connect(searchLocationButton, SIGNAL(clicked()),
this, SIGNAL(requestSearchLocation()));
}