From: Rikhard Kuutti Date: Thu, 18 Mar 2010 11:58:15 +0000 (+0200) Subject: Time and speed now stored in member variables in carmainwindow X-Git-Tag: v0.1~27 X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=commitdiff_plain;h=0c0a99608a4887eb4af4defa6b0edfd439baa148;ds=sidebyside Time and speed now stored in member variables in carmainwindow --- diff --git a/Client/carmainwindow.cpp b/Client/carmainwindow.cpp index 138daac..4218139 100644 --- a/Client/carmainwindow.cpp +++ b/Client/carmainwindow.cpp @@ -691,7 +691,7 @@ void CarMainWindow::readAccelerometerData() s.sprintf("%.2f", changeInAcceleration); currentAccelerationString = s; - double speed = 0.0; + speed = 0.0; speed = calculate->getCurrentSpeed(); speed = ((speed*1000)/kSecondsInHour); s.sprintf("%.2f", speed); @@ -703,9 +703,10 @@ void CarMainWindow::readAccelerometerData() // TODO //distanceTraveled; //horsepower; - //totalTime; - s.sprintf("%.2f", calculate->getTotalTime()); + time = calculate->getTotalTime(); + + s.sprintf("%.2f", time); totalTime = s; str.append("ca: " + currentAccelerationString + " G\n" );