From ae58b2fe29fcd8b3690dcbb6d64976674f6294e0 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 09 Apr 2005 20:54:29 +0000 Subject: cool --- (limited to 'libkcal') diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 7dee4cd..c008fe1 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -19,8 +19,10 @@ */ #include +#include #include #include +#include #include "todo.h" @@ -75,7 +77,19 @@ void Todo::setRunning( bool run ) void Todo::saveRunningInfoToFile() { - qDebug("Todo::saveRunningInfoToFile() "); + qDebug("Todo::saveRunningInfoToFile() %s", summary().latin1()); + + QString dir = KGlobalSettings::timeTrackerDir(); + qDebug("%s ", dir.latin1()); + QString file = "%1-%2-%3-%4-%5-%6-%7.tt"; + + file = file.arg( mRunStart.date().year(), 4).arg( mRunStart.date().month(),2 ).arg( mRunStart.date().day(), 2 ).arg( mRunStart.time().hour(),2 ).arg( mRunStart.time().minute(),2 ).arg( mRunStart.time().second(),2 ).arg( mRunStart.time().msec(), 3 ); + file.replace ( QRegExp (" "), "0" ); + file = dir +"/" +file; + qDebug("%s ", file.latin1()); + + + } int Todo::runTime() -- cgit v0.9.0.2