1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-28 17:34:23 +02:00

Added recursive POI dir searching to be consistent with map dir searching

This commit is contained in:
2018-01-30 00:30:26 +01:00
parent e10f8e9c1b
commit 84d860e2a2
5 changed files with 68 additions and 31 deletions

View File

@ -18,7 +18,8 @@ class POI : public QObject
public:
POI(QObject *parent = 0);
bool loadFile(const QString &fileName);
bool loadFile(const QString &path);
bool loadDir(const QString &path);
const QString &errorString() const {return _errorString;}
int errorLine() const {return _errorLine;}
@ -43,6 +44,8 @@ private:
bool enabled;
};
bool loadFile(const QString &path, bool dir);
POITree _tree;
QVector<Waypoint> _data;
QStringList _files;