X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=zouba%2Fgpscontroller.cpp;h=b031b6181c4d62a9f7575b73235cfbfe106911d6;hb=4f429bb5b56d861c5e35eeedf01b64287d66bd71;hp=49335c58a1f19526d515ffe8b4bd29ec11d7d8d0;hpb=ef04e25d328c588e1a450a9122e165921a2b15f5;p=ptas diff --git a/zouba/gpscontroller.cpp b/zouba/gpscontroller.cpp index 49335c5..b031b61 100644 --- a/zouba/gpscontroller.cpp +++ b/zouba/gpscontroller.cpp @@ -29,15 +29,20 @@ GpsController::~GpsController() void GpsController::updateLocation( QGeoPositionInfo positionInfo ) { + qDebug() << "new GPS position"; + Location newLocation( positionInfo ); if ( updatesEnabled ) { + qDebug() << "from location changed"; emit locationChanged( newLocation ); updatesEnabled = false; + m_location->setUpdateInterval( 1*60*1000 ); } } void GpsController::startGps() { updatesEnabled = true; + m_location->setUpdateInterval( 1 ); }