1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-27 08:54:23 +02:00

Added missing namespace

This commit is contained in:
2018-04-05 21:13:48 +02:00
parent 81b3a517f8
commit c5256b25e9
14 changed files with 39 additions and 42 deletions

View File

@ -15,18 +15,19 @@
MapSource::Config::Config() : type(TMS), zooms(ZOOM_MIN, ZOOM_MAX),
bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP), Coordinates(BOUNDS_RIGHT,
BOUNDS_BOTTOM)), format("image/png"), axisOrder(Unknown), rest(false) {}
BOUNDS_BOTTOM)), format("image/png"), axisOrder(CoordinateSystem::Unknown),
rest(false) {}
static AxisOrder axisOrder(QXmlStreamReader &reader)
static CoordinateSystem::AxisOrder axisOrder(QXmlStreamReader &reader)
{
QXmlStreamAttributes attr = reader.attributes();
if (attr.value("axis") == "yx")
return AxisOrder::YX;
return CoordinateSystem::YX;
else if (attr.value("axis") == "xy")
return AxisOrder::XY;
return CoordinateSystem::XY;
else
return AxisOrder::Unknown;
return CoordinateSystem::Unknown;
}
Range MapSource::zooms(QXmlStreamReader &reader)