mirror of
git://projects.qi-hardware.com/nanomap.git
synced 2025-04-13 05:47:26 +03:00
move config file to Maps/nanomap.conf
This commit is contained in:
parent
95c361f90b
commit
e00325730b
@ -768,7 +768,7 @@ void MapWidget::loadGpx(const QString &filename)
|
|||||||
|
|
||||||
void MapWidget::loadConfig()
|
void MapWidget::loadConfig()
|
||||||
{
|
{
|
||||||
QSettings set(QDir::homePath()+"/.nanomap.conf", QSettings::NativeFormat);
|
QSettings set(QDir::homePath()+"/Maps/nanomap.conf", QSettings::NativeFormat);
|
||||||
|
|
||||||
set.beginGroup("map");
|
set.beginGroup("map");
|
||||||
qreal lon = set.value("lon", 0).toReal();
|
qreal lon = set.value("lon", 0).toReal();
|
||||||
@ -791,7 +791,7 @@ void MapWidget::loadConfig()
|
|||||||
|
|
||||||
void MapWidget::saveConfig()
|
void MapWidget::saveConfig()
|
||||||
{
|
{
|
||||||
QSettings set(QDir::homePath()+"/.nanomap.conf", QSettings::NativeFormat);
|
QSettings set(QDir::homePath()+"/Maps/nanomap.conf", QSettings::NativeFormat);
|
||||||
|
|
||||||
set.beginGroup("map");
|
set.beginGroup("map");
|
||||||
QPointF pos = geoPos();
|
QPointF pos = geoPos();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user