diff -r 06b8e2af4411 -r 6fbed849b4f4 qtmobility/examples/sensors/panorama/timedcontroller.cpp --- a/qtmobility/examples/sensors/panorama/timedcontroller.cpp Fri Jun 11 14:26:25 2010 +0300 +++ b/qtmobility/examples/sensors/panorama/timedcontroller.cpp Wed Jun 23 19:08:38 2010 +0300 @@ -5,16 +5,19 @@ #include #include -TimedController::TimedController( ): m_delay(10){ m_exTime = QTime::currentTime(); } - -void TimedController::startTimer() -{ +TimedController::TimedController(): m_delay(10), m_interval(0){ + m_exTime = QTime::currentTime(); + m_exTimestamp =QTime::currentTime(); m_timer.setSingleShot(false); m_timer.start(m_delay); connect(&m_timer, SIGNAL(timeout()), this, SLOT(handleTimedUpdate())); + } -void TimedController::stopTimer(){ m_timer.stop();} +TimedController::~TimedController(){ + m_timer.stop(); + disconnect(&m_timer); +} void TimedController::handleTimedUpdate() @@ -26,5 +29,3 @@ } -void TimedController::updateCoordinates(){} -