1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed "display map coordinates" issues

This commit is contained in:
Martin Tůma 2019-02-18 22:36:45 +01:00
parent 8807c37770
commit bb71cfc426
2 changed files with 3 additions and 2 deletions

View File

@ -1679,7 +1679,8 @@ void GUI::writeSettings()
if (_showMapAction->isChecked() != SHOW_MAP_DEFAULT) if (_showMapAction->isChecked() != SHOW_MAP_DEFAULT)
settings.setValue(SHOW_MAP_SETTING, _showMapAction->isChecked()); settings.setValue(SHOW_MAP_SETTING, _showMapAction->isChecked());
if (_showCoordinatesAction->isChecked() != SHOW_COORDINATES_DEFAULT) if (_showCoordinatesAction->isChecked() != SHOW_COORDINATES_DEFAULT)
settings.setValue(SHOW_COORDINATES_SETTING, _showMapAction->isChecked()); settings.setValue(SHOW_COORDINATES_SETTING,
_showCoordinatesAction->isChecked());
settings.endGroup(); settings.endGroup();
settings.beginGroup(GRAPH_SETTINGS_GROUP); settings.beginGroup(GRAPH_SETTINGS_GROUP);

View File

@ -39,6 +39,7 @@ 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);
@ -751,7 +752,6 @@ 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)