1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Fixed coordinates info not displayed issues

This commit is contained in:
Martin Tůma 2019-04-03 09:18:33 +02:00
parent 3270625172
commit 4daa9fd55c
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ CoordinatesItem::CoordinatesItem(QGraphicsItem *parent) : QGraphicsItem(parent)
_digitalZoom = 0; _digitalZoom = 0;
setAcceptHoverEvents(true);
updateBoundingRect(); updateBoundingRect();
} }

View File

@ -39,7 +39,6 @@ MapView::MapView(Map *map, POI *poi, QWidget *parent)
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setRenderHint(QPainter::Antialiasing, true); setRenderHint(QPainter::Antialiasing, true);
setAcceptDrops(false); setAcceptDrops(false);
setMouseTracking(true);
_mapScale = new ScaleItem(); _mapScale = new ScaleItem();
_mapScale->setZValue(2.0); _mapScale->setZValue(2.0);
@ -752,6 +751,7 @@ void MapView::showPOILabels(bool show)
void MapView::showCoordinates(bool show) void MapView::showCoordinates(bool show)
{ {
_coordinates->setVisible(show); _coordinates->setVisible(show);
setMouseTracking(show);
} }
void MapView::setPOIOverlap(bool overlap) void MapView::setPOIOverlap(bool overlap)