projects
/
ptas
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed gpscontroller to just record the most recent gps coords, and give those when...
[ptas]
/
zouba
/
gpscontroller.cpp
diff --git
a/zouba/gpscontroller.cpp
b/zouba/gpscontroller.cpp
index
c8226ac
..
33ba7e6
100644
(file)
--- a/
zouba/gpscontroller.cpp
+++ b/
zouba/gpscontroller.cpp
@@
-11,8
+11,6
@@
GpsController::GpsController() :
m_location( QGeoPositionInfoSource::createDefaultSource(this) ),
currentLocation(0)
{
m_location( QGeoPositionInfoSource::createDefaultSource(this) ),
currentLocation(0)
{
- m_location->setUpdateInterval( 1*60*1000 );
-
connect(
m_location, SIGNAL( positionUpdated( QGeoPositionInfo ) ),
this, SLOT( updateLocation( QGeoPositionInfo ) )
connect(
m_location, SIGNAL( positionUpdated( QGeoPositionInfo ) ),
this, SLOT( updateLocation( QGeoPositionInfo ) )
@@
-31,16
+29,11
@@
GpsController::~GpsController()
void GpsController::updateLocation( QGeoPositionInfo positionInfo )
{
void GpsController::updateLocation( QGeoPositionInfo positionInfo )
{
- qDebug() << "new GPS position";
-
delete currentLocation;
currentLocation = new Location( positionInfo );
delete currentLocation;
currentLocation = new Location( positionInfo );
-
- qDebug() << "from location changed";
- emit locationChanged( currentLocation );
}
}
-void GpsController::startGps()
+void GpsController::getGps()
{
if ( currentLocation != 0 ) {
emit locationChanged( currentLocation );
{
if ( currentLocation != 0 ) {
emit locationChanged( currentLocation );