summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
15b8ade)
instead (that uses the panel context button bar)
#include "locationlistitem.h"
#include "locationlistview.h"
#include "extendedlistitemdelegate.h"
#include "locationlistitem.h"
#include "locationlistview.h"
#include "extendedlistitemdelegate.h"
+#include "imagebutton.h"
#include "routing/location.h"
#include "routing/route.h"
#include "routewaypointlistview.h"
#include "routing/location.h"
#include "routing/route.h"
#include "routewaypointlistview.h"
#include "routingpanel.h"
RoutingPanel::RoutingPanel(QWidget *parent)
#include "routingpanel.h"
RoutingPanel::RoutingPanel(QWidget *parent)
{
qDebug() << __PRETTY_FUNCTION__;
{
qDebug() << __PRETTY_FUNCTION__;
QVBoxLayout *listViewLayout = new QVBoxLayout;
listViewLayout->setContentsMargins(PANEL_MARGIN_LEFT, 0, PANEL_MARGIN_RIGHT, 0);
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();
m_routeButton = new QPushButton(tr("Route to location"));
m_routeButton->hide();
listViewLayout->addWidget(m_locationListView);
listViewLayout->addWidget(m_routeWaypointListView);
listViewLayout->addWidget(m_locationListView);
listViewLayout->addWidget(m_routeWaypointListView);
- routingLayout->addWidget(m_searchLocationButton);
routingLayout->addWidget(m_routeButton);
routingLayout->addWidget(m_locationListHeaderWidget);
routingLayout->addLayout(listViewLayout);
routingLayout->addWidget(m_routeButton);
routingLayout->addWidget(m_locationListHeaderWidget);
routingLayout->addLayout(listViewLayout);
connect(m_routeWaypointListView, SIGNAL(routeWaypointItemClicked(GeoCoordinate)),
this, SIGNAL(routeWaypointItemClicked(GeoCoordinate)));
connect(m_routeWaypointListView, SIGNAL(routeWaypointItemClicked(GeoCoordinate)),
this, SIGNAL(routeWaypointItemClicked(GeoCoordinate)));
- connect(m_searchLocationButton, SIGNAL(clicked()),
+ connect(searchLocationButton, SIGNAL(clicked()),
this, SIGNAL(requestSearchLocation()));
}
this, SIGNAL(requestSearchLocation()));
}
+#include "panelbase.h"
+
class ExtendedListItemDelegate;
class GeoCoordinate;
class LocationListView;
class ExtendedListItemDelegate;
class GeoCoordinate;
class LocationListView;
*
* @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
*/
*
* @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
*/
-class RoutingPanel : public QWidget
+class RoutingPanel : public PanelBase