From: Ville Tiensuu Date: Wed, 19 May 2010 06:57:40 +0000 (+0300) Subject: fixed dogygen documentetion on mapEngine. X-Git-Tag: v0.5~47^2~2 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=b5c06c4f79dae9a7f4bbd0758671a447f4d66648;p=situare fixed dogygen documentetion on mapEngine. fixed crosshair bug. Reviewed by: Kaj Wallin --- diff --git a/src/map/mapengine.h b/src/map/mapengine.h index 5067057..7e24386 100644 --- a/src/map/mapengine.h +++ b/src/map/mapengine.h @@ -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); diff --git a/src/ui/mapviewscreen.cpp b/src/ui/mapviewscreen.cpp index bca2658..cae99e0 100644 --- a/src/ui/mapviewscreen.cpp +++ b/src/ui/mapviewscreen.cpp @@ -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);