fixed dogygen documentetion on mapEngine.
authorVille Tiensuu <ville.tiensuu@ixonos.com>
Wed, 19 May 2010 06:57:40 +0000 (09:57 +0300)
committerVille Tiensuu <ville.tiensuu@ixonos.com>
Wed, 19 May 2010 06:57:40 +0000 (09:57 +0300)
fixed crosshair bug.
Reviewed by: Kaj Wallin

src/map/mapengine.h
src/ui/mapviewscreen.cpp

index 5067057..7e24386 100644 (file)
@@ -118,7 +118,7 @@ public:
     /**
     * @brief converts scene coordinates to latitude and longitude
     *
-    * @param current zoom level
+    * @param zoomLevel current zoom level
     * @param sceneCoordinate that will be converted
     */
     QPointF convertSceneCoordinateToLatLon(int zoomLevel, QPoint sceneCoordinate);
@@ -163,7 +163,7 @@ public slots:
     /**
     * @brief Slot to receive visible area of map scene
     *
-    * @param visible area of map scene
+    * @param viewSceneRect visible area of map scene
     */
     void receiveViewSceneRect(QRect viewSceneRect);
 
index bca2658..cae99e0 100644 (file)
@@ -146,6 +146,7 @@ MapViewScreen::MapViewScreen(QWidget *parent)
     QPixmap crosshairImage(":/res/images/sight.png");
     m_ownLocationCrosshair->setPixmap(crosshairImage);
     m_ownLocationCrosshair->setFixedSize(crosshairImage.size());
+    m_ownLocationCrosshair->hide();
 
     m_friendsListPanel->stackUnder(friendsListPanelSidebar);
     userPanelSidebar->stackUnder(m_friendsListPanel);
@@ -186,11 +187,6 @@ void MapViewScreen::drawOwnLocationCrosshair(int width, int height)
 void MapViewScreen::setOwnLocationCrosshairVisibility(bool visibility)
 {   
     if (visibility == false) {
-
-        if (m_ownLocationCrosshair == 0) {
-
-        }
-
         m_ownLocationCrosshair->show();
         m_drawOwnLocationCrosshair = true;
         drawOwnLocationCrosshair(m_viewPortWidth, m_viewPortHeight);