mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Fixed "Show POI laels" setting
This commit is contained in:
parent
cbaecee4a8
commit
64aa44d09b
@ -2072,6 +2072,9 @@ void GUI::writeSettings()
|
|||||||
settings.setValue(SHOW_POI_SETTING, _showPOIAction->isChecked());
|
settings.setValue(SHOW_POI_SETTING, _showPOIAction->isChecked());
|
||||||
if (_overlapPOIAction->isChecked() != OVERLAP_POI_DEFAULT)
|
if (_overlapPOIAction->isChecked() != OVERLAP_POI_DEFAULT)
|
||||||
settings.setValue(OVERLAP_POI_SETTING, _overlapPOIAction->isChecked());
|
settings.setValue(OVERLAP_POI_SETTING, _overlapPOIAction->isChecked());
|
||||||
|
if (_showPOILabelsAction->isChecked() != SHOW_POI_LABELS_DEFAULT)
|
||||||
|
settings.setValue(SHOW_POI_LABELS_SETTING,
|
||||||
|
_showPOILabelsAction->isChecked());
|
||||||
|
|
||||||
int j = 0;
|
int j = 0;
|
||||||
QList<QAction*> poiActions(_poisActionGroup->actions());
|
QList<QAction*> poiActions(_poisActionGroup->actions());
|
||||||
@ -2350,7 +2353,8 @@ void GUI::readSettings()
|
|||||||
_mapView->showOverlappedPOIs(false);
|
_mapView->showOverlappedPOIs(false);
|
||||||
else
|
else
|
||||||
_overlapPOIAction->setChecked(true);
|
_overlapPOIAction->setChecked(true);
|
||||||
if (!settings.value(LABELS_POI_SETTING, LABELS_POI_DEFAULT).toBool())
|
if (!settings.value(SHOW_POI_LABELS_SETTING, SHOW_POI_LABELS_DEFAULT)
|
||||||
|
.toBool())
|
||||||
_mapView->showPOILabels(false);
|
_mapView->showPOILabels(false);
|
||||||
else
|
else
|
||||||
_showPOILabelsAction->setChecked(true);
|
_showPOILabelsAction->setChecked(true);
|
||||||
|
@ -40,8 +40,8 @@
|
|||||||
#define POI_SETTINGS_GROUP "POI"
|
#define POI_SETTINGS_GROUP "POI"
|
||||||
#define OVERLAP_POI_SETTING "overlap"
|
#define OVERLAP_POI_SETTING "overlap"
|
||||||
#define OVERLAP_POI_DEFAULT false
|
#define OVERLAP_POI_DEFAULT false
|
||||||
#define LABELS_POI_SETTING "labels"
|
#define SHOW_POI_LABELS_SETTING "labels"
|
||||||
#define LABELS_POI_DEFAULT true
|
#define SHOW_POI_LABELS_DEFAULT true
|
||||||
#define SHOW_POI_SETTING "show"
|
#define SHOW_POI_SETTING "show"
|
||||||
#define SHOW_POI_DEFAULT false
|
#define SHOW_POI_DEFAULT false
|
||||||
#define DISABLED_POI_FILE_SETTINGS_PREFIX "disabled"
|
#define DISABLED_POI_FILE_SETTINGS_PREFIX "disabled"
|
||||||
|
Loading…
Reference in New Issue
Block a user