{
//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();
{
//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);
// 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()
getTiles(m_sceneCoordinate);
}
- /// @todo DONE: Sami: return
}
void MapEngine::setTilesDrawingLevels()
void MapEngine::scalingFactorChanged(qreal scaleFactor)
{
qDebug() << __PRETTY_FUNCTION__;
+ Q_UNUSED(scaleFactor);
}
QPoint MapEngine::convertSceneCoordinateToTileNumber(int zoomLevel, QPoint sceneCoordinate)