From 7da76d4abdaeea724b3c1827a9ce8de321e0d649 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sami=20R=C3=A4m=C3=B6?= Date: Wed, 1 Sep 2010 13:59:54 +0300 Subject: [PATCH] Review & fixes - Reviewed by Jussi Laitinen --- src/ui/locationsearchpanel.h | 5 +++++ src/ui/mainwindow.h | 8 ++++++-- src/ui/routingpanel.cpp | 1 + src/ui/routingpanel.h | 7 +++++-- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/ui/locationsearchpanel.h b/src/ui/locationsearchpanel.h index bb08f11..fd87bf2 100644 --- a/src/ui/locationsearchpanel.h +++ b/src/ui/locationsearchpanel.h @@ -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: diff --git a/src/ui/mainwindow.h b/src/ui/mainwindow.h index 3a2b923..1ab9cb1 100644 --- a/src/ui/mainwindow.h +++ b/src/ui/mainwindow.h @@ -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 diff --git a/src/ui/routingpanel.cpp b/src/ui/routingpanel.cpp index 24a3aa2..d64cd94 100644 --- a/src/ui/routingpanel.cpp +++ b/src/ui/routingpanel.cpp @@ -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); diff --git a/src/ui/routingpanel.h b/src/ui/routingpanel.h index 1f4d8cd..2418f4c 100644 --- a/src/ui/routingpanel.h +++ b/src/ui/routingpanel.h @@ -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 }; -- 1.7.9.5