author | zautrix <zautrix> | 2005-03-07 18:08:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-07 18:08:51 (UTC) |
commit | 668f49ee87c1b3b51e103ed8bb570a035c96b546 (patch) (unidiff) | |
tree | 9310b2a5f19589641c7bab924e87599c021141a1 /libkcal/todo.cpp | |
parent | 55c82dcc9b3c04c06b4eb73654d2b7f09a2e502c (diff) | |
download | kdepimpi-668f49ee87c1b3b51e103ed8bb570a035c96b546.zip kdepimpi-668f49ee87c1b3b51e103ed8bb570a035c96b546.tar.gz kdepimpi-668f49ee87c1b3b51e103ed8bb570a035c96b546.tar.bz2 |
start datetime fix for float
-rw-r--r-- | libkcal/todo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 39d16b6..a496404 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp | |||
@@ -188,13 +188,15 @@ QString Todo::dtDueDateStr(bool shortfmt) const | |||
188 | { | 188 | { |
189 | return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); | 189 | return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); |
190 | } | 190 | } |
191 | 191 | ||
192 | QString Todo::dtDueStr(bool shortfmt) const | 192 | QString Todo::dtDueStr(bool shortfmt) const |
193 | { | 193 | { |
194 | return KGlobal::locale()->formatDateTime(mDtDue, shortfmt); | 194 | if ( doesFloat() ) |
195 | return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); | ||
196 | return KGlobal::locale()->formatDateTime(mDtDue, shortfmt); | ||
195 | } | 197 | } |
196 | // retval 0 : no found | 198 | // retval 0 : no found |
197 | // 1 : due for date found | 199 | // 1 : due for date found |
198 | // 2 : overdue for date found | 200 | // 2 : overdue for date found |
199 | int Todo::hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ) | 201 | int Todo::hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ) |
200 | { | 202 | { |