From 6c715b67a8f0e32a4edca5be91332622834c8d91 Mon Sep 17 00:00:00 2001 From: eilers Date: Fri, 01 Aug 2003 12:30:16 +0000 Subject: Merging changes from BRANCH_1_0 to HEAD --- (limited to 'libopie/pim/otodo.cpp') diff --git a/libopie/pim/otodo.cpp b/libopie/pim/otodo.cpp index 38b93f7..5a18c37 100644 --- a/libopie/pim/otodo.cpp +++ b/libopie/pim/otodo.cpp @@ -28,6 +28,11 @@ struct OTodo::OTodoData : public QShared { maintainer = 0; notifiers = 0; }; + ~OTodoData() { + delete recur; + delete maintainer; + delete notifiers; + } QDate date; bool isCompleted:1; @@ -274,7 +279,7 @@ QString OTodo::toRichText() const QStringList catlist; // summary - text += "

"; + text += "

"; if ( !summary().isEmpty() ) { text += Qtopia::escapeString(summary() ).replace(QRegExp( "[\n]"), "" ); } @@ -282,16 +287,15 @@ QString OTodo::toRichText() const // description if( !description().isEmpty() ){ - text += "" + QObject::tr( "Description:" ) + "
"; - text += Qtopia::escapeString(description() ).replace(QRegExp( "[\n]"), "
" ) ; + text += "" + QObject::tr( "Notes:" ) + "
"; + text += Qtopia::escapeString(description() ).replace(QRegExp( "[\n]"), "
" ) + "
"; } // priority int priorityval = priority(); text += "" + QObject::tr( "Priority:") +" "; -// text += "" + QObject::tr( "Priority:") +"
"; + QString::number( priorityval ) + "\"> "; + switch ( priorityval ) { case 1 : text += QObject::tr( "Very high" ); -- cgit v0.9.0.2