From: Jussi Laitinen Date: Tue, 17 Aug 2010 05:33:05 +0000 (+0300) Subject: Added showPanel call to RoutingPanel::setRoute. X-Git-Tag: v2.0b-1~61^2^2~5^2~2 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=f8727ac03456b5da35e962854c0cd7d8f3579663;p=situare Added showPanel call to RoutingPanel::setRoute. --- diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 120a47e..1ad8cb1 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -336,6 +336,9 @@ void MainWindow::buildPanels() connect(m_friendsListPanel, SIGNAL(showPanelRequested(QWidget*)), m_tabbedPanel, SLOT(showPanel(QWidget*))); + + connect(m_routingPanel, SIGNAL(showPanelRequested(QWidget*)), + m_tabbedPanel, SLOT(showPanel(QWidget*))); } void MainWindow::buildRoutingPanel() diff --git a/src/ui/routingpanel.cpp b/src/ui/routingpanel.cpp index 089a917..a87c310 100644 --- a/src/ui/routingpanel.cpp +++ b/src/ui/routingpanel.cpp @@ -142,4 +142,6 @@ void RoutingPanel::setRoute(Route &route) } m_routeWaypointListView->scrollToTop(); + + emit showPanelRequested(this); } diff --git a/src/ui/routingpanel.h b/src/ui/routingpanel.h index 7ea34ed..d329f1e 100644 --- a/src/ui/routingpanel.h +++ b/src/ui/routingpanel.h @@ -105,6 +105,13 @@ signals: */ void routeWaypointItemClicked(const GeoCoordinate &coordinate); + /** + * @brief Signal for requesting a panel to be opened + * + * @param widget Pointer to the widget that emitted the signal + */ + void showPanelRequested(QWidget *widget); + /******************************************************************************* * DATA MEMBERS ******************************************************************************/