projects
/
ptas
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1) new status messages
[ptas]
/
zouba
/
gpscontroller.cpp
diff --git
a/zouba/gpscontroller.cpp
b/zouba/gpscontroller.cpp
index
49335c5
..
b031b61
100644
(file)
--- a/
zouba/gpscontroller.cpp
+++ b/
zouba/gpscontroller.cpp
@@
-29,15
+29,20
@@
GpsController::~GpsController()
void GpsController::updateLocation( QGeoPositionInfo positionInfo )
{
void GpsController::updateLocation( QGeoPositionInfo positionInfo )
{
+ qDebug() << "new GPS position";
+
Location newLocation( positionInfo );
if ( updatesEnabled ) {
Location newLocation( positionInfo );
if ( updatesEnabled ) {
+ qDebug() << "from location changed";
emit locationChanged( newLocation );
updatesEnabled = false;
emit locationChanged( newLocation );
updatesEnabled = false;
+ m_location->setUpdateInterval( 1*60*1000 );
}
}
void GpsController::startGps()
{
updatesEnabled = true;
}
}
void GpsController::startGps()
{
updatesEnabled = true;
+ m_location->setUpdateInterval( 1 );
}
}