[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/lib/gps
From: Daniel Molkentin <molkentin () kde ! org>
Date: 2007-08-21 20:04:22
Message-ID: 1187726662.082772.9551.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 703039 by danimo:
Work properly on Windows. Never forget that Qt internally always separates paths with \
'/', regardless of the underlying OS. Also, using QDir we get a better impression on \
what we are actually doing.
M +8 -3 GpxFile.cpp
--- trunk/KDE/kdeedu/marble/src/lib/gps/GpxFile.cpp #703038:703039
@@ -16,6 +16,7 @@
#include "Track.h"
#include "Route.h"
#include "Waypoint.h"
+
#include "GpxFile.h"
#include "WaypointContainer.h"
#include "TrackContainer.h"
@@ -23,6 +24,10 @@
#include "BoundingBox.h"
#include "GpxSax.h"
+#include <QtCore/QFile>
+#include <QtXml/QXmlInputSource>
+#include <QDebug>
+
GpxFile::GpxFile( const QString &fileName )
{
m_tracks = new TrackContainer;
@@ -106,17 +111,17 @@
void GpxFile::addWaypoint( Waypoint *waypoint )
{
- m_waypoints->append( dynamic_cast<AbstractLayerData*>(waypoint) );
+ m_waypoints->append( waypoint );
}
void GpxFile::addTrack( Track *track )
{
- m_tracks->append( dynamic_cast<AbstractLayerData*>(track) );
+ m_tracks->append( track );
}
void GpxFile::addRoute( Route *route )
{
- m_routes->append( dynamic_cast<AbstractLayerData*>(route) );
+ m_routes->append( route );
}
void GpxFile::setName( const QString &name )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic