author | zautrix <zautrix> | 2005-06-13 23:07:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-13 23:07:29 (UTC) |
commit | b3743f5abe0a95c9ffeadf6701c9943f604febd6 (patch) (side-by-side diff) | |
tree | ca7b4fa180795d5d6fb7b212eea74e0ddf2e73ad | |
parent | 35d40d945aed8c9e7c3389182014a2d99edb5254 (diff) | |
download | kdepimpi-b3743f5abe0a95c9ffeadf6701c9943f604febd6.zip kdepimpi-b3743f5abe0a95c9ffeadf6701c9943f604febd6.tar.gz kdepimpi-b3743f5abe0a95c9ffeadf6701c9943f604febd6.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/kofilterview.cpp | 1 | ||||
-rw-r--r-- | libkcal/todo.cpp | 4 | ||||
-rw-r--r-- | libkcal/todo.h | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 19d731f..9633b2c 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp @@ -351,13 +351,12 @@ void KOCalEditView::readConfig() mainLayout->addWidget( lab,row,0 ); mw->show(); } void KOCalEditView::addCal() { - qDebug("addcal "); KONewCalPrefs prefs ( this ); if ( ! prefs.exec() ) return; QString name = prefs.calName(); QString file = prefs.calFileName(); QFileInfo fi ( file ); diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 42274ff..e98af3c 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -85,12 +85,16 @@ void Todo::setRunning( bool run ) } else { mRunSaveTimer->stop(); saveRunningInfoToFile(); } } +void Todo::saveRunningInfoToFile() +{ + saveRunningInfoToFile( QString::null ); +} void Todo::saveRunningInfoToFile( QString comment ) { //qDebug("Todo::saveRunningInfoToFile() %s", summary().latin1()); if ( mRunStart.secsTo ( QDateTime::currentDateTime() ) < 30 ) { qDebug("Running time < 30 seconds. Skipped. "); return; diff --git a/libkcal/todo.h b/libkcal/todo.h index 501c2ba..6fc4d4b 100644 --- a/libkcal/todo.h +++ b/libkcal/todo.h @@ -122,13 +122,14 @@ namespace KCal { bool hasRunningSub(); void setRunning( bool ); void setRunningFalse( QString ); int runTime(); QDateTime runStart () const { return mRunStart;} public slots: - void saveRunningInfoToFile( QString st = QString::null ); + void saveRunningInfoToFile( QString st ); + void saveRunningInfoToFile( ); void saveParents(); private: bool mRunning; QTimer * mRunSaveTimer; QDateTime mRunStart; bool accept(Visitor &v) { return v.visit(this); } |