Review & fixes
authorSami Rämö <sami.ramo@ixonos.com>
Wed, 1 Sep 2010 10:59:54 +0000 (13:59 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Wed, 1 Sep 2010 10:59:54 +0000 (13:59 +0300)
 - Reviewed by Jussi Laitinen

src/ui/locationsearchpanel.h
src/ui/mainwindow.h
src/ui/routingpanel.cpp
src/ui/routingpanel.h

index bb08f11..fd87bf2 100644 (file)
@@ -68,6 +68,11 @@ protected:
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/
 private:
+    /**
+    * @brief Set text for header
+    *
+    * @param count Search result count
+    */
     void setHeaderText(int count);
 
 private slots:
index 3a2b923..1ab9cb1 100644 (file)
@@ -237,6 +237,10 @@ private:
      */
     void buildIndicatorButtonPanel();
 
+
+    /**
+     * @brief Build location search panel and connect signals
+     */
     void buildLocationSearchPanel();
 
     /**
@@ -695,8 +699,8 @@ private:
 
     FriendListPanel *m_friendsListPanel;    ///< Instance of friends list panel
     FullScreenButton *m_fullScreenButton;   ///< Instance of the fullscreen toggle button
-    IndicatorButtonPanel *m_indicatorButtonPanel;     ///< Instance of direction indicator button
-    LocationSearchPanel *m_locationSearchPanel;
+    IndicatorButtonPanel *m_indicatorButtonPanel;   ///< Instance of direction indicator button
+    LocationSearchPanel *m_locationSearchPanel;     ///< Location search panel
     MapScale *m_mapScale;                   ///< Instance of the map scale
     MapView *m_mapView;                     ///< Instance of the map view
     NetworkCookieJar *m_cookieJar;          ///< Placeholder for QNetworkCookies
index 24a3aa2..d64cd94 100644 (file)
@@ -55,6 +55,7 @@ RoutingPanel::RoutingPanel(QWidget *parent)
                                          "", "", this);
     connect(m_clearRouteButton, SIGNAL(clicked()),
             this, SLOT(clearRouteButtonClicked()));
+    m_clearRouteButton->setDisabled(true);
 
     ImageButton *routeToCursorButton = new ImageButton(":res/images/sight.png",
                                                        "", "", this);
index 1f4d8cd..2418f4c 100644 (file)
@@ -73,6 +73,9 @@ private slots:
     */
     void clearListsSelections();
 
+    /**
+    * @brief Handler for clear route button clicks
+    */
     void clearRouteButtonClicked();
 
     /**
@@ -116,9 +119,9 @@ signals:
  * DATA MEMBERS
  ******************************************************************************/
 private:
-    QLabel *m_resultsLabel;                 ///< Location list label
+    QLabel *m_resultsLabel;                             ///< Location list label
 
-    ImageButton *m_clearRouteButton;    ///< Search location button
+    ImageButton *m_clearRouteButton;                    ///< Search location button
     RouteWaypointListView *m_routeWaypointListView;     ///< Route instructions list view
 };