author | zecke <zecke> | 2003-06-20 15:40:07 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-06-20 15:40:07 (UTC) |
commit | ec80e207cce9ebb55be771603fc47a4e7892fd6c (patch) (unidiff) | |
tree | 0ec055e15a0ca1ec9ff0e9c674ecbcca389acbf4 /libopie2/opiepim/otodo.cpp | |
parent | c57f817ceca0eff0f6f3e90ad01654252911c1c5 (diff) | |
download | opie-ec80e207cce9ebb55be771603fc47a4e7892fd6c.zip opie-ec80e207cce9ebb55be771603fc47a4e7892fd6c.tar.gz opie-ec80e207cce9ebb55be771603fc47a4e7892fd6c.tar.bz2 |
toExtraMap is no more virtual
we save custom entries now
setExtraMap added as well
-rw-r--r-- | libopie2/opiepim/otodo.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libopie2/opiepim/otodo.cpp b/libopie2/opiepim/otodo.cpp index c84eeeb..38b93f7 100644 --- a/libopie2/opiepim/otodo.cpp +++ b/libopie2/opiepim/otodo.cpp | |||
@@ -280,5 +280,5 @@ QString OTodo::toRichText() const | |||
280 | } | 280 | } |
281 | text += "</h3></b><br><hr><br>"; | 281 | text += "</h3></b><br><hr><br>"; |
282 | 282 | ||
283 | // description | 283 | // description |
284 | if( !description().isEmpty() ){ | 284 | if( !description().isEmpty() ){ |
@@ -307,14 +307,14 @@ QString OTodo::toRichText() const | |||
307 | }; | 307 | }; |
308 | text += "<br>"; | 308 | text += "<br>"; |
309 | 309 | ||
310 | // progress | 310 | // progress |
311 | text += "<b>" + QObject::tr( "Progress:") + " </b>" | 311 | text += "<b>" + QObject::tr( "Progress:") + " </b>" |
312 | + QString::number( progress() ) + " %<br>"; | 312 | + QString::number( progress() ) + " %<br>"; |
313 | 313 | ||
314 | // due date | 314 | // due date |
315 | if (hasDueDate() ){ | 315 | if (hasDueDate() ){ |
316 | QDate dd = dueDate(); | 316 | QDate dd = dueDate(); |
317 | int off = QDate::currentDate().daysTo( dd ); | 317 | int off = QDate::currentDate().daysTo( dd ); |
318 | 318 | ||
319 | text += "<b>" + QObject::tr( "Deadline:" ) + " </b><font color=\""; | 319 | text += "<b>" + QObject::tr( "Deadline:" ) + " </b><font color=\""; |
320 | if ( off < 0 ) | 320 | if ( off < 0 ) |
@@ -327,5 +327,5 @@ QString OTodo::toRichText() const | |||
327 | text += "\">" + dd.toString() + "</font><br>"; | 327 | text += "\">" + dd.toString() + "</font><br>"; |
328 | } | 328 | } |
329 | 329 | ||
330 | // categories | 330 | // categories |
331 | text += "<b>" + QObject::tr( "Category:") + "</b> "; | 331 | text += "<b>" + QObject::tr( "Category:") + "</b> "; |
@@ -461,7 +461,4 @@ QMap<int, QString> OTodo::toMap() const { | |||
461 | } | 461 | } |
462 | 462 | ||
463 | QMap<QString, QString> OTodo::toExtraMap()const { | ||
464 | return data->extra; | ||
465 | } | ||
466 | /** | 463 | /** |
467 | * change or modify looks at the ref count and either | 464 | * change or modify looks at the ref count and either |