panelLayout->addLayout(resultsListViewLayout);
// --- CONTEXT BUTTONS ---
- ImageButton *searchLocationButton = new ImageButton(":/res/images/search.png",
- ":/res/images/search_s.png", "", this);
- connect(searchLocationButton, SIGNAL(clicked()),
- this, SIGNAL(requestSearchLocation()));
-
m_routeButton = new ImageButton(":res/images/compass.png", "", "", this);
m_routeButton->setDisabled(true);
connect(m_routeButton, SIGNAL(clicked()),
this, SLOT(routeToSelectedLocation()));
- m_contextButtonLayout->addWidget(searchLocationButton);
+ ImageButton *searchLocationButton = new ImageButton(":/res/images/search.png",
+ ":/res/images/search_s.png", "", this);
+ connect(searchLocationButton, SIGNAL(clicked()),
+ this, SIGNAL(requestSearchLocation()));
+
m_contextButtonLayout->addWidget(m_routeButton);
+ m_contextButtonLayout->addWidget(searchLocationButton);
}
void LocationSearchPanel::clearListsSelections()
setLayout(panelLayout);
// --- CONTEXT BUTTONS ---
+ ImageButton *routeToCursorButton = new ImageButton(":res/images/sight.png",
+ "", "", this);
+ connect(routeToCursorButton, SIGNAL(clicked()),
+ this, SIGNAL(routeToCursor()));
+
m_clearRouteButton = new ImageButton(":/res/images/gps_position.png",
"", "", this);
connect(m_clearRouteButton, SIGNAL(clicked()),
this, SLOT(clearRouteButtonClicked()));
m_clearRouteButton->setDisabled(true);
- ImageButton *routeToCursorButton = new ImageButton(":res/images/sight.png",
- "", "", this);
- connect(routeToCursorButton, SIGNAL(clicked()),
- this, SIGNAL(routeToCursor()));
-
- m_contextButtonLayout->addWidget(m_clearRouteButton);
m_contextButtonLayout->addWidget(routeToCursorButton);
+ m_contextButtonLayout->addWidget(m_clearRouteButton);
}
void RoutingPanel::clearListsSelections()