Finalised review and removed review comments
[situare] / src / map / mapengine.cpp
index 2518944..f05a470 100644 (file)
@@ -201,15 +201,12 @@ void MapEngine::removeTilesOutOfView()
 {
     //qDebug() << __PRETTY_FUNCTION__;
 
-    /// @todo Jussi: convertTi.... returns QPoint DONE
     QPoint topLeft = convertTileNumberToSceneCoordinate(m_zoomLevel, m_viewGrid.topLeft());
     QPoint bottomRight = convertTileNumberToSceneCoordinate(m_zoomLevel, m_viewGrid.bottomRight()
                                                              + QPoint(1, 1));
     qreal width = bottomRight.x() - topLeft.x();
     qreal height = bottomRight.y() - topLeft.y();
 
-    /// @todo Jussi: insert comments DONE
-    //
     QList<QGraphicsItem *> viewTiles = m_mapScene->items(topLeft.x(), topLeft.y(), width, height,
                                                          Qt::ContainsItemBoundingRect);
     QList<QGraphicsItem *> allTiles = m_mapScene->items();
@@ -229,8 +226,6 @@ void MapEngine::removeStackedTiles(MapTile *newTile)
 {
     //qDebug() << __PRETTY_FUNCTION__;
 
-    /// @todo Jussi: use sceneBoundingRect DONE
-//    QRectF newTileSceneRect = newTile->mapRectToScene(newTile->boundingRect());
     QRectF newTileSceneRect = newTile->sceneBoundingRect();
     QList<QGraphicsItem *> collidingTiles = newTile->collidingItems(Qt::IntersectsItemBoundingRect);
 
@@ -302,7 +297,6 @@ void MapEngine::zoomIn()
         // remove unused tiles after zooming is done
         QTimer::singleShot(ZOOM_TIME*2, this, SLOT(removeTilesOutOfView()));
     }
-        /// @todo DONE: Sami: return only to end
 }
 
 void MapEngine::zoomOut()
@@ -317,7 +311,6 @@ void MapEngine::zoomOut()
 
         getTiles(m_sceneCoordinate);
     }
-    /// @todo DONE: Sami: return
 }
 
 void MapEngine::setTilesDrawingLevels()
@@ -346,6 +339,7 @@ QString MapEngine::tilePath(int zoomLevel, int x, int y)
 void MapEngine::scalingFactorChanged(qreal scaleFactor)
 {
     qDebug() << __PRETTY_FUNCTION__;
+    Q_UNUSED(scaleFactor);
 }
 
 QPoint MapEngine::convertSceneCoordinateToTileNumber(int zoomLevel, QPoint sceneCoordinate)