mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-03 16:09:08 +01:00
Code cleanup
This commit is contained in:
parent
22e5ffaa0c
commit
4653f771a6
@ -251,8 +251,7 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir,
|
|||||||
{
|
{
|
||||||
int zoom;
|
int zoom;
|
||||||
QSize tileSize, size, calibrationSize;
|
QSize tileSize, size, calibrationSize;
|
||||||
QString datum, projection, fileName;
|
QString fileName;
|
||||||
QList<CalibrationPoint> points;
|
|
||||||
Projection proj;
|
Projection proj;
|
||||||
Transform t;
|
Transform t;
|
||||||
|
|
||||||
@ -269,6 +268,7 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir,
|
|||||||
_name = name;
|
_name = name;
|
||||||
} else if (reader.name() == QLatin1String("MapChunks")) {
|
} else if (reader.name() == QLatin1String("MapChunks")) {
|
||||||
int xMax, yMax, width, height;
|
int xMax, yMax, width, height;
|
||||||
|
QString datum, projection;
|
||||||
|
|
||||||
QXmlStreamAttributes attr = reader.attributes();
|
QXmlStreamAttributes attr = reader.attributes();
|
||||||
if (!intAttr(reader, attr, "xMax", xMax))
|
if (!intAttr(reader, attr, "xMax", xMax))
|
||||||
@ -318,6 +318,8 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir,
|
|||||||
|
|
||||||
reader.readElementText();
|
reader.readElementText();
|
||||||
} else if (reader.name() == QLatin1String("CalibrationPoints")) {
|
} else if (reader.name() == QLatin1String("CalibrationPoints")) {
|
||||||
|
QList<CalibrationPoint> points;
|
||||||
|
|
||||||
calibrationPoints(reader, calibrationSize, points);
|
calibrationPoints(reader, calibrationSize, points);
|
||||||
|
|
||||||
t = computeTransformation(proj, points);
|
t = computeTransformation(proj, points);
|
||||||
|
Loading…
Reference in New Issue
Block a user