Added showPanel call to RoutingPanel::setRoute.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 17 Aug 2010 05:33:05 +0000 (08:33 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 17 Aug 2010 05:33:05 +0000 (08:33 +0300)
src/ui/mainwindow.cpp
src/ui/routingpanel.cpp
src/ui/routingpanel.h

index 120a47e..1ad8cb1 100644 (file)
@@ -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()
index 089a917..a87c310 100644 (file)
@@ -142,4 +142,6 @@ void RoutingPanel::setRoute(Route &route)
     }
 
     m_routeWaypointListView->scrollToTop();
+
+    emit showPanelRequested(this);
 }
index 7ea34ed..d329f1e 100644 (file)
@@ -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
  ******************************************************************************/