# of all compounds will be generated. Enable this if the project
# contains a lot of classes, structs, unions or interfaces.
-ALPHABETICAL_INDEX = NO
+ALPHABETICAL_INDEX = YES
# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
# Windows users are probably better off using the HTML help feature.
-GENERATE_TREEVIEW = NO
+GENERATE_TREEVIEW = YES
# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
# and Class Hierarchy pages using a tree view instead of an ordered list.
-USE_INLINE_TREES = NO
+USE_INLINE_TREES = YES
# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
# used to set the initial width (in pixels) of the frame in which the tree
# toolkit from AT&T and Lucent Bell Labs. The other options in this section
# have no effect if this option is set to NO (the default)
-HAVE_DOT = NO
+HAVE_DOT = YES
# By default doxygen will write a font called FreeSans.ttf to the output
# directory and reference it in all dot files that doxygen generates. This
# collaboration diagrams in a style similar to the OMG's Unified Modeling
# Language.
-UML_LOOK = NO
+UML_LOOK = YES
# If set to YES, the inheritance and collaboration graphs will show the
# relations between templates and their instances.
m_mapScene->addTile(mapTile, hashKey);
- m_mapScene->debugItemsCount();
-
m_mapScene->enqueueRemoveStackedTiles(mapTile);
}
}
* @brief MapFetcher handles requests to get map tiles.
*
* @author Jussi Laitinen jussi.laitinen@ixonos.com
+* @author Sami Rämö sami.ramo@ixonos.com
*/
class MapFetcher : public QObject
{
Q_OBJECT
/**
- * @brief Struct for download requests
+ * @brief Type for download requests
*
* @typedef Request
+ */
+ /**
+ * @brief Struct for download requests
+ *
+ * @struct _Request
*/
typedef struct _Request {
bool cacheChecked; ///< Is this request already checked from the cache
addItem(mapTile);
}
-void MapScene::debugItemsCount()
-{
-#ifndef Q_WS_MAEMO_5
- qDebug() << __PRETTY_FUNCTION__ << "ITEM ADDED:" << items().count();
-#endif // Q_WS_MAEMO_5
-}
-
void MapScene::enqueueRemoveStackedTiles(MapTile *newTile)
{
qDebug() << __PRETTY_FUNCTION__;
}
else {
m_isRemoveStackedTilesRunning = false;
-#ifndef Q_WS_MAEMO_5
- qDebug() << __PRETTY_FUNCTION__ << "STACKED END:" << items().count();
-#endif // Q_WS_MAEMO_5
+ qDebug() << __PRETTY_FUNCTION__ << "Stacked tiles removal queue processing finished,"
+ << "items count:" << items().count();
}
}
QList<QGraphicsItem *> viewTiles = items(m_viewRect, Qt::IntersectsItemBoundingRect);
QList<QGraphicsItem *> allTiles = items();
-#ifndef Q_WS_MAEMO_5
- qDebug() << __PRETTY_FUNCTION__ << "OUT OF VIEW START:" << items().count();
-#endif // Q_WS_MAEMO_5
-
-
qDebug() << __PRETTY_FUNCTION__ << "All tiles:" << allTiles.count();
qDebug() << __PRETTY_FUNCTION__ << "Tiles in view area:" << viewTiles.count();
removeTile(tileToRemove);
}
-#ifndef Q_WS_MAEMO_5
- qDebug() << __PRETTY_FUNCTION__ << "OUT OF VIEW END:" << items().count();
-#endif // Q_WS_MAEMO_5
-
+ qDebug() << __PRETTY_FUNCTION__ << "finished, items count:" << items().count();
}
void MapScene::removeStackedTiles(MapTile *newTile)
foreach (QGraphicsItem *collidingItem, collidingItems) {
MapTile *collidingTile = dynamic_cast<MapTile *>(collidingItem);
if (collidingTile) {
- // remove tile if it is fully obscured by new tile
- QRectF collidingTileSceneRect = collidingTile->sceneBoundingRect();
- if (newTileSceneRect.contains(collidingTileSceneRect))
- removeTile(collidingTile);
+ if (newTile->zValue() > collidingTile->zValue()) {
+ // remove tile if it is fully obscured by new tile
+ QRectF collidingTileSceneRect = collidingTile->sceneBoundingRect();
+ if (newTileSceneRect.contains(collidingTileSceneRect))
+ removeTile(collidingTile);
+ }
+
}
}
}
*/
void addTile(MapTile *mapTile, QString hashKey);
- void debugItemsCount();
-
/**
* @brief Enqueue stacked tiles removal request
*